]> rtime.felk.cvut.cz Git - linux-imx.git/commitdiff
cfg80211: Clear "beacon_found" on regulatory restore
authorPaul Stewart <pstew@chromium.org>
Wed, 1 Aug 2012 23:54:42 +0000 (16:54 -0700)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 2 Aug 2012 13:34:22 +0000 (15:34 +0200)
Restore the default state to the "beacon_found" flag when
the channel flags are restored.  Otherwise, we can end up
with a channel that we can no longer transmit on even when
we can see beacons on that channel.

Signed-off-by: Paul Stewart <pstew@chromium.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/reg.c

index cbf30de79c69eb141ff79f59d411ff3f2ff95896..2ded3c7fad063a067151595c774b9bddd14bdc9a 100644 (file)
@@ -1901,6 +1901,7 @@ static void restore_custom_reg_settings(struct wiphy *wiphy)
                        chan->flags = chan->orig_flags;
                        chan->max_antenna_gain = chan->orig_mag;
                        chan->max_power = chan->orig_mpwr;
+                       chan->beacon_found = false;
                }
        }
 }