summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mwifiex/scan.c
diff options
context:
space:
mode:
authorAniket Nagarnaik <aniketn@marvell.com>2015-07-16 17:05:22 +0200
committerKalle Valo <kvalo@codeaurora.org>2015-07-21 17:09:49 +0200
commit0c6303cc06954c336a8221522e9ddf056125afab (patch)
tree3be8cd094beae7855584c3f5a29f2ae760b3b9c3 /drivers/net/wireless/mwifiex/scan.c
parentmwifiex: add bss mode TLV to extended scan command (diff)
downloadlinux-0c6303cc06954c336a8221522e9ddf056125afab.tar.xz
linux-0c6303cc06954c336a8221522e9ddf056125afab.zip
mwifiex: use maximum ssid length as 0xfe for p2p
0xfe is basically a magic number used to ask firmware match provided string in a SSID. In this case, firmware will return scan results containing"DIRECT-" string. Signed-off-by: Aniket Nagarnaik <aniketn@marvell.com> Signed-off-by: Amitkumar Karwar <akarwar@marvell.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/mwifiex/scan.c')
-rw-r--r--drivers/net/wireless/mwifiex/scan.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/wireless/mwifiex/scan.c b/drivers/net/wireless/mwifiex/scan.c
index ef2bef8399c2..ef8da8ebcbab 100644
--- a/drivers/net/wireless/mwifiex/scan.c
+++ b/drivers/net/wireless/mwifiex/scan.c
@@ -909,6 +909,10 @@ mwifiex_config_scan(struct mwifiex_private *priv,
wildcard_ssid_tlv->max_ssid_length =
IEEE80211_MAX_SSID_LEN;
+ if (!memcmp(user_scan_in->ssid_list[i].ssid,
+ "DIRECT-", 7))
+ wildcard_ssid_tlv->max_ssid_length = 0xfe;
+
memcpy(wildcard_ssid_tlv->ssid,
user_scan_in->ssid_list[i].ssid, ssid_len);