OSDN Git Service

Merge "wil6210: support loading dedicated image for sparrow-plus devices"
authorLinux Build Service Account <lnxbuild@localhost>
Wed, 15 Feb 2017 14:11:27 +0000 (06:11 -0800)
committerGerrit - the friendly Code Review server <code-review@localhost>
Wed, 15 Feb 2017 14:11:26 +0000 (06:11 -0800)
1  2 
drivers/net/wireless/ath/wil6210/wmi.c

@@@ -1719,9 -1747,26 +1747,27 @@@ int wmi_abort_scan(struct wil6210_priv 
        return rc;
  }
  
+ int wmi_new_sta(struct wil6210_priv *wil, const u8 *mac, u8 aid)
+ {
+       int rc;
+       struct wmi_new_sta_cmd cmd = {
+               .aid = aid,
+       };
+       wil_dbg_wmi(wil, "new sta %pM, aid %d\n", mac, aid);
+       ether_addr_copy(cmd.dst_mac, mac);
+       rc = wmi_send(wil, WMI_NEW_STA_CMDID, &cmd, sizeof(cmd));
+       if (rc)
+               wil_err(wil, "Failed to send new sta (%d)\n", rc);
+       return rc;
+ }
  void wmi_event_flush(struct wil6210_priv *wil)
  {
 +      ulong flags;
        struct pending_wmi_event *evt, *t;
  
        wil_dbg_wmi(wil, "%s()\n", __func__);