aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2012-01-20 07:52:36 -0500
committerJohn W. Linville <linville@tuxdriver.com>2012-01-27 14:56:55 -0500
commit8e7c4e4dc6e98a0d3ee4535c6b94a3ad63adad2a (patch)
tree589946341681ae98ff5d4c8bbc936da6820aa2c4 /net
parentea086359a63bd0dd85c1d784d0425340649613fa (diff)
mac80211: fix a few -Wshadow warnings
It seems that -Wshadow is no longer default in sparse runs, but let's fix the warnings anyway. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net')
-rw-r--r--net/mac80211/rx.c3
-rw-r--r--net/mac80211/status.c6
2 files changed, 3 insertions, 6 deletions
diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c
index 751409120769..73d213810a37 100644
--- a/net/mac80211/rx.c
+++ b/net/mac80211/rx.c
@@ -2180,9 +2180,6 @@ ieee80211_rx_h_mgmt_check(struct ieee80211_rx_data *rx)
2180 if (rx->sdata->vif.type == NL80211_IFTYPE_AP && 2180 if (rx->sdata->vif.type == NL80211_IFTYPE_AP &&
2181 ieee80211_is_beacon(mgmt->frame_control) && 2181 ieee80211_is_beacon(mgmt->frame_control) &&
2182 !(rx->flags & IEEE80211_RX_BEACON_REPORTED)) { 2182 !(rx->flags & IEEE80211_RX_BEACON_REPORTED)) {
2183 struct ieee80211_rx_status *status;
2184
2185 status = IEEE80211_SKB_RXCB(rx->skb);
2186 cfg80211_report_obss_beacon(rx->local->hw.wiphy, 2183 cfg80211_report_obss_beacon(rx->local->hw.wiphy,
2187 rx->skb->data, rx->skb->len, 2184 rx->skb->data, rx->skb->len,
2188 status->freq, GFP_ATOMIC); 2185 status->freq, GFP_ATOMIC);
diff --git a/net/mac80211/status.c b/net/mac80211/status.c
index 30c265c98f73..d67f0b967f8a 100644
--- a/net/mac80211/status.c
+++ b/net/mac80211/status.c
@@ -350,7 +350,6 @@ void ieee80211_tx_status(struct ieee80211_hw *hw, struct sk_buff *skb)
350 bool send_to_cooked; 350 bool send_to_cooked;
351 bool acked; 351 bool acked;
352 struct ieee80211_bar *bar; 352 struct ieee80211_bar *bar;
353 u16 tid;
354 int rtap_len; 353 int rtap_len;
355 354
356 for (i = 0; i < IEEE80211_TX_MAX_RATES; i++) { 355 for (i = 0; i < IEEE80211_TX_MAX_RATES; i++) {
@@ -412,7 +411,7 @@ void ieee80211_tx_status(struct ieee80211_hw *hw, struct sk_buff *skb)
412 } 411 }
413 412
414 if (!acked && ieee80211_is_back_req(fc)) { 413 if (!acked && ieee80211_is_back_req(fc)) {
415 u16 control; 414 u16 tid, control;
416 415
417 /* 416 /*
418 * BAR failed, store the last SSN and retry sending 417 * BAR failed, store the last SSN and retry sending
@@ -516,7 +515,8 @@ void ieee80211_tx_status(struct ieee80211_hw *hw, struct sk_buff *skb)
516 515
517 if (ieee80211_is_nullfunc(hdr->frame_control) || 516 if (ieee80211_is_nullfunc(hdr->frame_control) ||
518 ieee80211_is_qos_nullfunc(hdr->frame_control)) { 517 ieee80211_is_qos_nullfunc(hdr->frame_control)) {
519 bool acked = info->flags & IEEE80211_TX_STAT_ACK; 518 acked = info->flags & IEEE80211_TX_STAT_ACK;
519
520 cfg80211_probe_status(skb->dev, hdr->addr1, 520 cfg80211_probe_status(skb->dev, hdr->addr1,
521 cookie, acked, GFP_ATOMIC); 521 cookie, acked, GFP_ATOMIC);
522 } else { 522 } else {