]> git.karo-electronics.de Git - linux-beck.git/commit
mwifiex: send regulatory domain info to firmware only if alpha2 changed
authorBing Zhao <bzhao@marvell.com>
Sat, 14 Dec 2013 02:32:59 +0000 (18:32 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 18 Dec 2013 20:23:06 +0000 (15:23 -0500)
commitdd4a9ac05c8e17f40427878f379123263333bcd7
tree4c8a2e83b47a4d3a56a7844705d0d774f08d9976
parent935d00ccf7321d704a1bf8e982dd6934165c1327
mwifiex: send regulatory domain info to firmware only if alpha2 changed

On cfg80211 regulatory domain change, drivers gets alpha2 country
code or "00" in driver's notification handler.

In most cases, the pattern will be US, 00, US, 00, US, 00, US, ...
There is no need to send domain info to firmware in case of "00" or
with the same alpha2 country code.

Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/cfg80211.c
drivers/net/wireless/mwifiex/sta_ioctl.c