|
@@ -1769,8 +1769,7 @@ static void handle_reg_beacon(struct wiphy *wiphy, unsigned int chan_idx,
|
|
if (wiphy->regulatory_flags & REGULATORY_DISABLE_BEACON_HINTS)
|
|
if (wiphy->regulatory_flags & REGULATORY_DISABLE_BEACON_HINTS)
|
|
return;
|
|
return;
|
|
|
|
|
|
- chan_before.center_freq = chan->center_freq;
|
|
|
|
- chan_before.flags = chan->flags;
|
|
|
|
|
|
+ chan_before = *chan;
|
|
|
|
|
|
if (chan->flags & IEEE80211_CHAN_NO_IR) {
|
|
if (chan->flags & IEEE80211_CHAN_NO_IR) {
|
|
chan->flags &= ~IEEE80211_CHAN_NO_IR;
|
|
chan->flags &= ~IEEE80211_CHAN_NO_IR;
|