]> git.baikalelectronics.ru Git - kernel.git/commit
mwifiex: avoid storing random_mac in private
authorGanapathi Bhat <gbhat@marvell.com>
Mon, 18 Sep 2017 06:55:02 +0000 (12:25 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 20 Sep 2017 12:47:53 +0000 (15:47 +0300)
commite1b64c91bf0badbc0ae05e514a2ef4b0c3cd9b30
treeff58e7b29d8fc513512d1004a4b4587a76e24c43
parent1ea9d25ff7bb93f790d9d8505c4159a061fd8178
mwifiex: avoid storing random_mac in private

Application will keep track of whether MAC address randomization
is enabled or not during scan. But at present driver is storing
'random_mac' in mwifiex_private which implies even after scan is
done driver has some reference to the earlier 'scan request'. To
avoid this, make use of 'mac_addr' variable in 'scan_request' to
store 'random_mac'. This structure will be freed by cfg80211 once
scan is done.

Signed-off-by: Ganapathi Bhat <gbhat@marvell.com>
Reviewed-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/cfg80211.c
drivers/net/wireless/marvell/mwifiex/main.h
drivers/net/wireless/marvell/mwifiex/scan.c