This patch series addresses unnecessary usage of random_mac from
user scan_request.
Ganapathi Bhat (2):
mwifiex: do not use random MAC for pre-association scanning
mwifiex: check for NL80211_SCAN_FLAG_RANDOM_ADDR during hidden SSID
scan
drivers/net/wireless/marvell/mwifiex/scan.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--
1.9.1
Driver should use random MAC address only if the scan is
requested by user(provided NL80211_SCAN_FLAG_RANDOM_ADDR
is set in scan request). It should not be used for a scan
performed before association.
Signed-off-by: Ganapathi Bhat <redacted>
---
drivers/net/wireless/marvell/mwifiex/scan.c | 1 -
1 file changed, 1 deletion(-)
At the end of user scan request, driver will perform an active
scan for hidden SSIDs in passive channels. While doing this,
driver unconditionally adding random_mac in scan command, which
is no expected. It should add random_mac only if scan_request
has NL80211_SCAN_FLAG_RANDOM_ADDR flag set.
Signed-off-by: Ganapathi Bhat <redacted>
---
drivers/net/wireless/marvell/mwifiex/scan.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
From: Kalle Valo <hidden> Date: 2017-08-17 07:00:11
Ganapathi Bhat [off-list ref] wrote:
Driver should use random MAC address only if the scan is
requested by user(provided NL80211_SCAN_FLAG_RANDOM_ADDR
is set in scan request). It should not be used for a scan
performed before association.
Signed-off-by: Ganapathi Bhat <redacted>