mac80211: Fix warnings due to -Wunused-but-set-variable
These warnings are exposed by gcc 4.6. net/mac80211/sta_info.c: In function 'sta_info_cleanup_expire_buffered': net/mac80211/sta_info.c:590:32: warning: variable 'sdata' set but not used net/mac80211/ibss.c: In function 'ieee80211_rx_mgmt_auth_ibss': net/mac80211/ibss.c:43:34: warning: variable 'status_code' set but not used net/mac80211/work.c: In function 'ieee80211_send_assoc': net/mac80211/work.c:203:9: warning: variable 'len' set but not used net/mac80211/tx.c: In function '__ieee80211_parse_tx_radiotap': net/mac80211/tx.c:1039:35: warning: variable 'sband' set but not used net/mac80211/mesh.c: In function 'ieee80211_mesh_rx_queued_mgmt': net/mac80211/mesh.c:616:28: warning: variable 'ifmsh' set but not used ... Signed-off-by: Rajkumar Manoharan <rmanoharan@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
committed by
John W. Linville
parent
334df73197
commit
0915cba394
@ -198,9 +198,8 @@ static void ieee80211_send_assoc(struct ieee80211_sub_if_data *sdata,
|
||||
struct sk_buff *skb;
|
||||
struct ieee80211_mgmt *mgmt;
|
||||
u8 *pos, qos_info;
|
||||
const u8 *ies;
|
||||
size_t offset = 0, noffset;
|
||||
int i, len, count, rates_len, supp_rates_len;
|
||||
int i, count, rates_len, supp_rates_len;
|
||||
u16 capab;
|
||||
struct ieee80211_supported_band *sband;
|
||||
u32 rates = 0;
|
||||
@ -285,7 +284,7 @@ static void ieee80211_send_assoc(struct ieee80211_sub_if_data *sdata,
|
||||
}
|
||||
|
||||
/* SSID */
|
||||
ies = pos = skb_put(skb, 2 + wk->assoc.ssid_len);
|
||||
pos = skb_put(skb, 2 + wk->assoc.ssid_len);
|
||||
*pos++ = WLAN_EID_SSID;
|
||||
*pos++ = wk->assoc.ssid_len;
|
||||
memcpy(pos, wk->assoc.ssid, wk->assoc.ssid_len);
|
||||
@ -295,7 +294,6 @@ static void ieee80211_send_assoc(struct ieee80211_sub_if_data *sdata,
|
||||
if (supp_rates_len > 8)
|
||||
supp_rates_len = 8;
|
||||
|
||||
len = sband->n_bitrates;
|
||||
pos = skb_put(skb, supp_rates_len + 2);
|
||||
*pos++ = WLAN_EID_SUPP_RATES;
|
||||
*pos++ = supp_rates_len;
|
||||
|
Reference in New Issue
Block a user