cfg80211: regulatory: reset regdomain in case of error
authorJanusz Dziedzic <janusz.dziedzic@tieto.com>
Fri, 14 Feb 2014 07:54:00 +0000 (08:54 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 25 Feb 2014 15:27:04 +0000 (16:27 +0100)
commit092008abeed1e4168c08826262695ea67657e1aa
tree68705af45715df5cbc38b77bba2f6a23f9eeb874
parent963a1852fbac4f75a2d938fa2e734ef1e6d4c044
cfg80211: regulatory: reset regdomain in case of error

Reset regdomain to world regdomain in case
of errors in set_regdom() function.

This will fix a problem with such scenario:
- iw reg set US
- iw reg set 00
- iw reg set US
The last step always fail and we get deadlock
in kernel regulatory code. Next setting new
regulatory wasn't possible due to:

Pending regulatory request, waiting for it to be processed...

Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
Acked-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/reg.c