summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/marvell/mwifiex/main.h
diff options
context:
space:
mode:
authorGanapathi Bhat <gbhat@marvell.com>2017-09-18 12:25:02 +0530
committerKalle Valo <kvalo@codeaurora.org>2017-09-20 15:47:53 +0300
commite251a882c0bae39d3d31efe993e977104605a9b3 (patch)
treeff58e7b29d8fc513512d1004a4b4587a76e24c43 /drivers/net/wireless/marvell/mwifiex/main.h
parentd157bcfaf8542612fd9ffc0cbbc1e52b85157640 (diff)
downloadlinux-e251a882c0bae39d3d31efe993e977104605a9b3.tar.gz
linux-e251a882c0bae39d3d31efe993e977104605a9b3.tar.bz2
linux-e251a882c0bae39d3d31efe993e977104605a9b3.zip
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>
Diffstat (limited to 'drivers/net/wireless/marvell/mwifiex/main.h')
-rw-r--r--drivers/net/wireless/marvell/mwifiex/main.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/wireless/marvell/mwifiex/main.h b/drivers/net/wireless/marvell/mwifiex/main.h
index a76bd797e454..a34de8582e91 100644
--- a/drivers/net/wireless/marvell/mwifiex/main.h
+++ b/drivers/net/wireless/marvell/mwifiex/main.h
@@ -680,7 +680,6 @@ struct mwifiex_private {
struct mwifiex_user_scan_chan hidden_chan[MWIFIEX_USER_SCAN_CHAN_MAX];
u8 assoc_resp_ht_param;
bool ht_param_present;
- u8 random_mac[ETH_ALEN];
};