aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/util.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2013-12-16 05:23:45 -0500
committerJohannes Berg <johannes.berg@intel.com>2013-12-16 05:23:45 -0500
commitc4de673b775e4db48cd2db6277e0c6714332ca0c (patch)
tree84f9e4728e6ccf257236d2ba063b6e784ec8b65d /net/mac80211/util.c
parentbafdc614a1f4f8be8cde41b8ab10ac17e67c1837 (diff)
parent55957fb7a0b61d8ab6ff3f04e279b8fc22b738fa (diff)
Merge remote-tracking branch 'wireless-next/master' into mac80211-next
Diffstat (limited to 'net/mac80211/util.c')
-rw-r--r--net/mac80211/util.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/net/mac80211/util.c b/net/mac80211/util.c
index 4a376a724153..adf81f023681 100644
--- a/net/mac80211/util.c
+++ b/net/mac80211/util.c
@@ -2312,17 +2312,15 @@ void ieee80211_dfs_radar_detected_work(struct work_struct *work)
2312{ 2312{
2313 struct ieee80211_local *local = 2313 struct ieee80211_local *local =
2314 container_of(work, struct ieee80211_local, radar_detected_work); 2314 container_of(work, struct ieee80211_local, radar_detected_work);
2315 struct cfg80211_chan_def chandef; 2315 struct cfg80211_chan_def chandef = local->hw.conf.chandef;
2316 2316
2317 ieee80211_dfs_cac_cancel(local); 2317 ieee80211_dfs_cac_cancel(local);
2318 2318
2319 if (local->use_chanctx) 2319 if (local->use_chanctx)
2320 /* currently not handled */ 2320 /* currently not handled */
2321 WARN_ON(1); 2321 WARN_ON(1);
2322 else { 2322 else
2323 chandef = local->hw.conf.chandef;
2324 cfg80211_radar_event(local->hw.wiphy, &chandef, GFP_KERNEL); 2323 cfg80211_radar_event(local->hw.wiphy, &chandef, GFP_KERNEL);
2325 }
2326} 2324}
2327 2325
2328void ieee80211_radar_detected(struct ieee80211_hw *hw) 2326void ieee80211_radar_detected(struct ieee80211_hw *hw)
@@ -2492,13 +2490,8 @@ int ieee80211_send_action_csa(struct ieee80211_sub_if_data *sdata,
2492 WLAN_EID_CHAN_SWITCH_PARAM_TX_RESTRICT : 0x00; 2490 WLAN_EID_CHAN_SWITCH_PARAM_TX_RESTRICT : 0x00;
2493 put_unaligned_le16(WLAN_REASON_MESH_CHAN, pos); /* Reason Cd */ 2491 put_unaligned_le16(WLAN_REASON_MESH_CHAN, pos); /* Reason Cd */
2494 pos += 2; 2492 pos += 2;
2495 if (!ifmsh->pre_value)
2496 ifmsh->pre_value = 1;
2497 else
2498 ifmsh->pre_value++;
2499 put_unaligned_le16(ifmsh->pre_value, pos);/* Precedence Value */ 2493 put_unaligned_le16(ifmsh->pre_value, pos);/* Precedence Value */
2500 pos += 2; 2494 pos += 2;
2501 ifmsh->chsw_init = true;
2502 } 2495 }
2503 2496
2504 ieee80211_tx_skb(sdata, skb); 2497 ieee80211_tx_skb(sdata, skb);