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 <>
Signed-off-by: Kalle Valo <>
(cherry picked from git:// master
commit 89001c1c8dc32698112df0119ad5c632405892ca)

TEST=kevin Wifi with KASAN enabled; reset tests + matfunc

Change-Id: I18def63b1279d58353038506d5de7c54bf72c6b0
Commit-Ready: Brian Norris <>
Tested-by: Brian Norris <>
Reviewed-by: Brian Norris <>
1 file changed