cfg80211: fix regulatory restore upon user hints
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Tue, 5 Apr 2011 17:49:03 +0000 (10:49 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 7 Apr 2011 19:52:29 +0000 (15:52 -0400)
commit146095557b01cf5ff5d66554d96cbb8133d94eb9
tree38c92011c76c8a9510ea4cd1a02192113a9ddc7c
parent02a7fa00a6d145037d549c779ad7692deb504acc
cfg80211: fix regulatory restore upon user hints

When we restore regulatory settings its possible CRDA
will not reply because of a bogus user entry. In this
case the bogus entry will prevent any further processing
on cfg80211 for regulatory domains even if we restore
regulatory settings.

To prevent this we suck out all pending requests when
restoring regulatory settings and add them back into the
queue after we have queued up the reset work.

The impact of not having this applied is that a user
with privileges can issue a userspace regulatory hint
while we are disasocciating and this would prevent any
further processing of regulatory domains.

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