diff options
author | Aniket Nagarnaik <aniketn@marvell.com> | 2015-07-16 08:05:22 -0700 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2015-07-21 18:09:49 +0300 |
commit | 0c6303cc06954c336a8221522e9ddf056125afab (patch) | |
tree | 3be8cd094beae7855584c3f5a29f2ae760b3b9c3 /drivers/net/wireless/mwifiex | |
parent | 40d7412b56f02160291a5153551c4ada8e76f6ed (diff) | |
download | op-kernel-dev-0c6303cc06954c336a8221522e9ddf056125afab.zip op-kernel-dev-0c6303cc06954c336a8221522e9ddf056125afab.tar.gz |
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')
-rw-r--r-- | drivers/net/wireless/mwifiex/scan.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/wireless/mwifiex/scan.c b/drivers/net/wireless/mwifiex/scan.c index ef2bef8..ef8da8e 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); |