]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita5740fe6e464db093d1503cb6765a7aa7604eb3e
tree542f56da670cde486798133e4a1c6234f52dda96
parent3cd08a9b54bafd4246b6b5acc7f6b392b66877b1
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