]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbdcf962f3667bdec2c12b547360a79bb337a974e
tree68705af45715df5cbc38b77bba2f6a23f9eeb874
parent3eb4e02cb9287e0a17cf95e2434352651a7b2d73
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