aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Lin <dlin@marvell.com>2016-06-04 07:21:20 +0800
committerDavid Lin <dlin@marvell.com>2016-06-04 07:21:20 +0800
commit863519122677e6e6406eee5fbde14183f35ad938 (patch)
treed8792fff26f00423b370aa02795bd9f5924266cb
parent39cf37cf5f8940dd1796c0a10b06e88748553263 (diff)
Updated WSC IE to probe response.
Signed-off-by: David Lin <dlin@marvell.com>
-rw-r--r--fwcmd.c8
-rw-r--r--hostcmd.h2
2 files changed, 10 insertions, 0 deletions
diff --git a/fwcmd.c b/fwcmd.c
index c320a24..a48521e 100644
--- a/fwcmd.c
+++ b/fwcmd.c
@@ -2572,6 +2572,14 @@ int mwl_fwcmd_set_wsc_ie(struct ieee80211_hw *hw, u8 len, u8 *data)
return -EIO;
}
+ pcmd->ie_type = WSC_IE_SET_PROBE_RESPONSE;
+
+ if (mwl_fwcmd_exec_cmd(priv, HOSTCMD_CMD_SET_WSC_IE)) {
+ mutex_unlock(&priv->fwcmd_mutex);
+ wiphy_err(hw->wiphy, "failed execution\n");
+ return -EIO;
+ }
+
mutex_unlock(&priv->fwcmd_mutex);
return 0;
diff --git a/hostcmd.h b/hostcmd.h
index 63199f6..c209114 100644
--- a/hostcmd.h
+++ b/hostcmd.h
@@ -129,6 +129,8 @@
/* Misc */
#define WSC_IE_MAX_LENGTH 251
+#define WSC_IE_SET_BEACON 0
+#define WSC_IE_SET_PROBE_RESPONSE 1
enum {
WL_DISABLE = 0,