summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorRajkumar Manoharan <rmanohar@qca.qualcomm.com>2011-09-14 14:28:17 +0530
committerJohn W. Linville <linville@tuxdriver.com>2011-09-16 15:32:08 -0400
commitaa3d7eef398dd4f29045e9889b817d5161afe03e (patch)
tree85810b242c5828eb146ee40da760f47fe5aa2b56 /net
parent282cdb325aea4ebbc42ce753b47cc96145eb54bc (diff)
downloadlinux-stable-aa3d7eef398dd4f29045e9889b817d5161afe03e.tar.gz
linux-stable-aa3d7eef398dd4f29045e9889b817d5161afe03e.tar.bz2
linux-stable-aa3d7eef398dd4f29045e9889b817d5161afe03e.zip
wireless: Reset beacon_found while updating regulatory
During the association, the regulatory is updated by country IE that reaps the previously found beacons. The impact is that after a STA disconnects *or* when for any reason a regulatory domain change happens the beacon hint flag is not cleared therefore preventing future beacon hints to be learned. This is important as a regulatory domain change or a restore of regulatory settings would set back the passive scan and no-ibss flags on the channel. This is the right place to do this given that it covers any regulatory domain change. Cc: stable@kernel.org Reviewed-by: Luis R. Rodriguez <mcgrof@gmail.com> Signed-off-by: Rajkumar Manoharan <rmanohar@qca.qualcomm.com> Acked-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net')
-rw-r--r--net/wireless/reg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/wireless/reg.c b/net/wireless/reg.c
index 02751dbc5a97..68a471ba193f 100644
--- a/net/wireless/reg.c
+++ b/net/wireless/reg.c
@@ -852,6 +852,7 @@ static void handle_channel(struct wiphy *wiphy,
return;
}
+ chan->beacon_found = false;
chan->flags = flags | bw_flags | map_regdom_flags(reg_rule->flags);
chan->max_antenna_gain = min(chan->orig_mag,
(int) MBI_TO_DBI(power_rule->max_antenna_gain));