Skip to content

Commit

Permalink
cfg80211: Clear "beacon_found" on regulatory restore
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Paul Stewart authored and Johannes Berg committed Aug 2, 2012
1 parent 03f6b08 commit 899852a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/wireless/reg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}
Expand Down

0 comments on commit 899852a

Please sign in to comment.