mwifiex: update set_mac_address logic
authorSharvari Harisangam <sharvari@marvell.com>
Wed, 12 Jun 2019 15:12:11 +0000 (20:42 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 25 Jun 2019 04:46:59 +0000 (07:46 +0300)
commit7afb94da3cd8a28ed7ae268143117bf1ac8a3371
tree542f56da670cde486798133e4a1c6234f52dda96
parent2fc0aa454473a5f528cdc3e357da4489d0ccc6ee
mwifiex: update set_mac_address logic

In set_mac_address, driver check for interfaces with same bss_type
For first STA entry, this would return 3 interfaces since all priv's have
bss_type as 0 due to kzalloc. Thus mac address gets changed for STA
unexpected. This patch adds check for first STA and avoids mac address
change. This patch also adds mac_address change for p2p based on bss_num
type.

Signed-off-by: Sharvari Harisangam <sharvari@marvell.com>
Signed-off-by: Ganapathi Bhat <gbhat@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/main.c