diff options
Diffstat (limited to 'net/mac80211/mlme.c')
-rw-r--r-- | net/mac80211/mlme.c | 24 |
1 files changed, 5 insertions, 19 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index f1ee9d22cf4b..2c06f6965b7d 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c | |||
@@ -96,20 +96,6 @@ static int ieee80211_compatible_rates(struct ieee80211_sta_bss *bss, | |||
96 | } | 96 | } |
97 | 97 | ||
98 | /* frame sending functions */ | 98 | /* frame sending functions */ |
99 | void ieee80211_sta_tx(struct ieee80211_sub_if_data *sdata, struct sk_buff *skb, | ||
100 | int encrypt) | ||
101 | { | ||
102 | skb->dev = sdata->local->mdev; | ||
103 | skb_set_mac_header(skb, 0); | ||
104 | skb_set_network_header(skb, 0); | ||
105 | skb_set_transport_header(skb, 0); | ||
106 | |||
107 | skb->iif = sdata->dev->ifindex; | ||
108 | skb->do_not_encrypt = !encrypt; | ||
109 | |||
110 | dev_queue_xmit(skb); | ||
111 | } | ||
112 | |||
113 | static void ieee80211_send_auth(struct ieee80211_sub_if_data *sdata, | 99 | static void ieee80211_send_auth(struct ieee80211_sub_if_data *sdata, |
114 | struct ieee80211_if_sta *ifsta, | 100 | struct ieee80211_if_sta *ifsta, |
115 | int transaction, u8 *extra, size_t extra_len, | 101 | int transaction, u8 *extra, size_t extra_len, |
@@ -144,7 +130,7 @@ static void ieee80211_send_auth(struct ieee80211_sub_if_data *sdata, | |||
144 | if (extra) | 130 | if (extra) |
145 | memcpy(skb_put(skb, extra_len), extra, extra_len); | 131 | memcpy(skb_put(skb, extra_len), extra, extra_len); |
146 | 132 | ||
147 | ieee80211_sta_tx(sdata, skb, encrypt); | 133 | ieee80211_tx_skb(sdata, skb, encrypt); |
148 | } | 134 | } |
149 | 135 | ||
150 | void ieee80211_send_probe_req(struct ieee80211_sub_if_data *sdata, u8 *dst, | 136 | void ieee80211_send_probe_req(struct ieee80211_sub_if_data *sdata, u8 *dst, |
@@ -204,7 +190,7 @@ void ieee80211_send_probe_req(struct ieee80211_sub_if_data *sdata, u8 *dst, | |||
204 | *pos = rate->bitrate / 5; | 190 | *pos = rate->bitrate / 5; |
205 | } | 191 | } |
206 | 192 | ||
207 | ieee80211_sta_tx(sdata, skb, 0); | 193 | ieee80211_tx_skb(sdata, skb, 0); |
208 | } | 194 | } |
209 | 195 | ||
210 | static void ieee80211_send_assoc(struct ieee80211_sub_if_data *sdata, | 196 | static void ieee80211_send_assoc(struct ieee80211_sub_if_data *sdata, |
@@ -412,7 +398,7 @@ static void ieee80211_send_assoc(struct ieee80211_sub_if_data *sdata, | |||
412 | if (ifsta->assocreq_ies) | 398 | if (ifsta->assocreq_ies) |
413 | memcpy(ifsta->assocreq_ies, ies, ifsta->assocreq_ies_len); | 399 | memcpy(ifsta->assocreq_ies, ies, ifsta->assocreq_ies_len); |
414 | 400 | ||
415 | ieee80211_sta_tx(sdata, skb, 0); | 401 | ieee80211_tx_skb(sdata, skb, 0); |
416 | } | 402 | } |
417 | 403 | ||
418 | 404 | ||
@@ -442,7 +428,7 @@ static void ieee80211_send_deauth_disassoc(struct ieee80211_sub_if_data *sdata, | |||
442 | /* u.deauth.reason_code == u.disassoc.reason_code */ | 428 | /* u.deauth.reason_code == u.disassoc.reason_code */ |
443 | mgmt->u.deauth.reason_code = cpu_to_le16(reason); | 429 | mgmt->u.deauth.reason_code = cpu_to_le16(reason); |
444 | 430 | ||
445 | ieee80211_sta_tx(sdata, skb, 0); | 431 | ieee80211_tx_skb(sdata, skb, 0); |
446 | } | 432 | } |
447 | 433 | ||
448 | /* MLME */ | 434 | /* MLME */ |
@@ -1796,7 +1782,7 @@ static void ieee80211_rx_mgmt_probe_req(struct ieee80211_sub_if_data *sdata, | |||
1796 | printk(KERN_DEBUG "%s: Sending ProbeResp to %s\n", | 1782 | printk(KERN_DEBUG "%s: Sending ProbeResp to %s\n", |
1797 | sdata->dev->name, print_mac(mac, resp->da)); | 1783 | sdata->dev->name, print_mac(mac, resp->da)); |
1798 | #endif /* CONFIG_MAC80211_IBSS_DEBUG */ | 1784 | #endif /* CONFIG_MAC80211_IBSS_DEBUG */ |
1799 | ieee80211_sta_tx(sdata, skb, 0); | 1785 | ieee80211_tx_skb(sdata, skb, 0); |
1800 | } | 1786 | } |
1801 | 1787 | ||
1802 | static void ieee80211_rx_mgmt_action(struct ieee80211_sub_if_data *sdata, | 1788 | static void ieee80211_rx_mgmt_action(struct ieee80211_sub_if_data *sdata, |