diff options
author | John W. Linville <linville@tuxdriver.com> | 2013-12-06 09:50:45 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-12-06 09:50:45 -0500 |
commit | e08fd975bf26aa8063cadd245817e042f570472d (patch) | |
tree | 2b2a705710e6374cc037f89bcc7bfc25047485ba /net/mac80211/util.c | |
parent | 251c9ba19143caa5eb5b6ec52c77c70c9d7b3d8f (diff) | |
parent | a59b40b30f3f51bf5c56c15a7dc4da11b424a34b (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless
Conflicts:
drivers/net/wireless/brcm80211/Kconfig
net/mac80211/util.c
Diffstat (limited to 'net/mac80211/util.c')
-rw-r--r-- | net/mac80211/util.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/net/mac80211/util.c b/net/mac80211/util.c index 06265d7f8cc3..875e172c001c 100644 --- a/net/mac80211/util.c +++ b/net/mac80211/util.c | |||
@@ -2301,17 +2301,15 @@ void ieee80211_dfs_radar_detected_work(struct work_struct *work) | |||
2301 | { | 2301 | { |
2302 | struct ieee80211_local *local = | 2302 | struct ieee80211_local *local = |
2303 | container_of(work, struct ieee80211_local, radar_detected_work); | 2303 | container_of(work, struct ieee80211_local, radar_detected_work); |
2304 | struct cfg80211_chan_def chandef; | 2304 | struct cfg80211_chan_def chandef = local->hw.conf.chandef; |
2305 | 2305 | ||
2306 | ieee80211_dfs_cac_cancel(local); | 2306 | ieee80211_dfs_cac_cancel(local); |
2307 | 2307 | ||
2308 | if (local->use_chanctx) | 2308 | if (local->use_chanctx) |
2309 | /* currently not handled */ | 2309 | /* currently not handled */ |
2310 | WARN_ON(1); | 2310 | WARN_ON(1); |
2311 | else { | 2311 | else |
2312 | chandef = local->hw.conf.chandef; | ||
2313 | cfg80211_radar_event(local->hw.wiphy, &chandef, GFP_KERNEL); | 2312 | cfg80211_radar_event(local->hw.wiphy, &chandef, GFP_KERNEL); |
2314 | } | ||
2315 | } | 2313 | } |
2316 | 2314 | ||
2317 | void ieee80211_radar_detected(struct ieee80211_hw *hw) | 2315 | void ieee80211_radar_detected(struct ieee80211_hw *hw) |
@@ -2481,13 +2479,8 @@ int ieee80211_send_action_csa(struct ieee80211_sub_if_data *sdata, | |||
2481 | WLAN_EID_CHAN_SWITCH_PARAM_TX_RESTRICT : 0x00; | 2479 | WLAN_EID_CHAN_SWITCH_PARAM_TX_RESTRICT : 0x00; |
2482 | put_unaligned_le16(WLAN_REASON_MESH_CHAN, pos); /* Reason Cd */ | 2480 | put_unaligned_le16(WLAN_REASON_MESH_CHAN, pos); /* Reason Cd */ |
2483 | pos += 2; | 2481 | pos += 2; |
2484 | if (!ifmsh->pre_value) | ||
2485 | ifmsh->pre_value = 1; | ||
2486 | else | ||
2487 | ifmsh->pre_value++; | ||
2488 | put_unaligned_le16(ifmsh->pre_value, pos);/* Precedence Value */ | 2482 | put_unaligned_le16(ifmsh->pre_value, pos);/* Precedence Value */ |
2489 | pos += 2; | 2483 | pos += 2; |
2490 | ifmsh->chsw_init = true; | ||
2491 | } | 2484 | } |
2492 | 2485 | ||
2493 | ieee80211_tx_skb(sdata, skb); | 2486 | ieee80211_tx_skb(sdata, skb); |