]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: add a timer for invalid user reg hints
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Tue, 5 Apr 2011 17:49:04 +0000 (10:49 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 7 Apr 2011 19:52:29 +0000 (15:52 -0400)
commit692284c9ca6ccb331a1cfa1c1cbf857c25a01552
treeb5484abed3ef3f23e17375fbc44657b875b7f418
parente2fcc27704afe18eb7ab861edf597a984a57c16e
cfg80211: add a timer for invalid user reg hints

We have no other option but to inform userspace that we
have queued up their regulatory hint request when we are
given one given that nl80211 operates atomically on user
requests. The best we can do is accept the request, and
add a delayed work item for processing failure and cancel it
if we succeeed. Upon failure we restore the regulatory
settings and ignore the user input.

This fixes this reported bug:

https://bugzilla.kernel.org/show_bug.cgi?id=28112

Reported-by: gregoryx.alagnou@intel.com
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/wireless/reg.c