UPSTREAM: mwifiex: check for NL80211_SCAN_FLAG_RANDOM_ADDR during hidden SSID scan

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 <gbhat@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
(cherry picked from git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/wireless-drivers-next.git master
commit 89001c1c8dc32698112df0119ad5c632405892ca)

BUG=b:37088079
TEST=kevin Wifi with KASAN enabled; reset tests + matfunc

Change-Id: I18def63b1279d58353038506d5de7c54bf72c6b0
Reviewed-on: https://chromium-review.googlesource.com/628639
Commit-Ready: Brian Norris <briannorris@chromium.org>
Tested-by: Brian Norris <briannorris@chromium.org>
Reviewed-by: Brian Norris <briannorris@chromium.org>
1 file changed