]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: fix regresion on reg user timeout
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Tue, 26 Apr 2011 01:35:48 +0000 (18:35 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 26 Apr 2011 20:14:55 +0000 (16:14 -0400)
commited8cd898e5d24d2dc86d2a9a53386c6eb583535e
tree668efc5ef9f3929cbdce6fa02a3720da672dbeb1
parentfaacb7f8b22b634f4d9e44ab3dfbaa11dec43793
cfg80211: fix regresion on reg user timeout

The patch "cfg80211: add a timer for invalid user reg hints"
introduced a regression for the case where a secondary identical
regulatory hint from a user is sent. What would happen is the
second hint would schedule delayed work in to catch a timeout
but since we are never processing it given that the hint was already
applied we'd always hit the timeout and and restore regulatory
settings back to world regulatory domain. This is fixed by simply
avoiding sheduling work if the hint was already applied.

Tested-by: Felix Fietkau <nbd@openwrt.org>
Reported-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/wireless/reg.c