]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: fix regression on processing country IEs
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Tue, 19 Oct 2010 00:44:51 +0000 (17:44 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 25 Oct 2010 18:43:14 +0000 (14:43 -0400)
commita5c628d290b49688bb4dcbce1b127b5ae4a9d1b4
treee0d89a5324c677e4049ce18011f3b7f948b071a0
parent68fd4ad413c18bc43b8816cf6f457a295561f09b
cfg80211: fix regression on processing country IEs

The patch 663dfbb:

wireless: only use alpha2 regulatory information from country IE

removed some complex intersection we were always doing between the AP's
country IE info and what we got from CRDA. When CRDA sent us back a
regulatory domain we would do some sanity checks on that regulatory
domain response we just got. Part of these sanity checks included
checking that we already had performed an intersection for the
request of NL80211_REGDOM_SET_BY_COUNTRY_IE type.

This mean that cfg80211 was only processing country IEs for cases
where we already had an intersection, but since we removed enforcing
this this is no longer required, we should just apply the country
IE country hint with the data received from CRDA.

This patch has fixes intended for kernels >= 2.6.36.

Cc: stable@kernel.org
Reported-by: Easwar Krishnan <easwar.krishnan@atheros.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/wireless/reg.c