diff options
Diffstat (limited to 'net/mac80211/tx.c')
-rw-r--r-- | net/mac80211/tx.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c index 1b772ee2fe14..99590e4ce30b 100644 --- a/net/mac80211/tx.c +++ b/net/mac80211/tx.c | |||
@@ -237,7 +237,7 @@ ieee80211_tx_h_check_assoc(struct ieee80211_txrx_data *tx) | |||
237 | 237 | ||
238 | if (likely(tx->flags & IEEE80211_TXRXD_TXUNICAST)) { | 238 | if (likely(tx->flags & IEEE80211_TXRXD_TXUNICAST)) { |
239 | if (unlikely(!(sta_flags & WLAN_STA_ASSOC) && | 239 | if (unlikely(!(sta_flags & WLAN_STA_ASSOC) && |
240 | tx->sdata->type != IEEE80211_IF_TYPE_IBSS && | 240 | tx->sdata->vif.type != IEEE80211_IF_TYPE_IBSS && |
241 | (tx->fc & IEEE80211_FCTL_FTYPE) == IEEE80211_FTYPE_DATA)) { | 241 | (tx->fc & IEEE80211_FCTL_FTYPE) == IEEE80211_FTYPE_DATA)) { |
242 | #ifdef CONFIG_MAC80211_VERBOSE_DEBUG | 242 | #ifdef CONFIG_MAC80211_VERBOSE_DEBUG |
243 | DECLARE_MAC_BUF(mac); | 243 | DECLARE_MAC_BUF(mac); |
@@ -251,7 +251,7 @@ ieee80211_tx_h_check_assoc(struct ieee80211_txrx_data *tx) | |||
251 | } else { | 251 | } else { |
252 | if (unlikely((tx->fc & IEEE80211_FCTL_FTYPE) == IEEE80211_FTYPE_DATA && | 252 | if (unlikely((tx->fc & IEEE80211_FCTL_FTYPE) == IEEE80211_FTYPE_DATA && |
253 | tx->local->num_sta == 0 && | 253 | tx->local->num_sta == 0 && |
254 | tx->sdata->type != IEEE80211_IF_TYPE_IBSS)) { | 254 | tx->sdata->vif.type != IEEE80211_IF_TYPE_IBSS)) { |
255 | /* | 255 | /* |
256 | * No associated STAs - no need to send multicast | 256 | * No associated STAs - no need to send multicast |
257 | * frames. | 257 | * frames. |
@@ -294,7 +294,7 @@ static void purge_old_ps_buffers(struct ieee80211_local *local) | |||
294 | list_for_each_entry_rcu(sdata, &local->interfaces, list) { | 294 | list_for_each_entry_rcu(sdata, &local->interfaces, list) { |
295 | struct ieee80211_if_ap *ap; | 295 | struct ieee80211_if_ap *ap; |
296 | if (sdata->dev == local->mdev || | 296 | if (sdata->dev == local->mdev || |
297 | sdata->type != IEEE80211_IF_TYPE_AP) | 297 | sdata->vif.type != IEEE80211_IF_TYPE_AP) |
298 | continue; | 298 | continue; |
299 | ap = &sdata->u.ap; | 299 | ap = &sdata->u.ap; |
300 | skb = skb_dequeue(&ap->ps_bc_buf); | 300 | skb = skb_dequeue(&ap->ps_bc_buf); |
@@ -949,7 +949,7 @@ __ieee80211_tx_prepare(struct ieee80211_txrx_data *tx, | |||
949 | 949 | ||
950 | /* process and remove the injection radiotap header */ | 950 | /* process and remove the injection radiotap header */ |
951 | sdata = IEEE80211_DEV_TO_SUB_IF(dev); | 951 | sdata = IEEE80211_DEV_TO_SUB_IF(dev); |
952 | if (unlikely(sdata->type == IEEE80211_IF_TYPE_MNTR)) { | 952 | if (unlikely(sdata->vif.type == IEEE80211_IF_TYPE_MNTR)) { |
953 | if (__ieee80211_parse_tx_radiotap(tx, skb) == TXRX_DROP) | 953 | if (__ieee80211_parse_tx_radiotap(tx, skb) == TXRX_DROP) |
954 | return TXRX_DROP; | 954 | return TXRX_DROP; |
955 | 955 | ||
@@ -1252,7 +1252,7 @@ int ieee80211_master_start_xmit(struct sk_buff *skb, | |||
1252 | } | 1252 | } |
1253 | 1253 | ||
1254 | control.vif = &osdata->vif; | 1254 | control.vif = &osdata->vif; |
1255 | control.type = osdata->type; | 1255 | control.type = osdata->vif.type; |
1256 | if (pkt_data->flags & IEEE80211_TXPD_REQ_TX_STATUS) | 1256 | if (pkt_data->flags & IEEE80211_TXPD_REQ_TX_STATUS) |
1257 | control.flags |= IEEE80211_TXCTL_REQ_TX_STATUS; | 1257 | control.flags |= IEEE80211_TXCTL_REQ_TX_STATUS; |
1258 | if (pkt_data->flags & IEEE80211_TXPD_DO_NOT_ENCRYPT) | 1258 | if (pkt_data->flags & IEEE80211_TXPD_DO_NOT_ENCRYPT) |
@@ -1371,7 +1371,7 @@ int ieee80211_subif_start_xmit(struct sk_buff *skb, | |||
1371 | ethertype = (skb->data[12] << 8) | skb->data[13]; | 1371 | ethertype = (skb->data[12] << 8) | skb->data[13]; |
1372 | fc = IEEE80211_FTYPE_DATA | IEEE80211_STYPE_DATA; | 1372 | fc = IEEE80211_FTYPE_DATA | IEEE80211_STYPE_DATA; |
1373 | 1373 | ||
1374 | switch (sdata->type) { | 1374 | switch (sdata->vif.type) { |
1375 | case IEEE80211_IF_TYPE_AP: | 1375 | case IEEE80211_IF_TYPE_AP: |
1376 | case IEEE80211_IF_TYPE_VLAN: | 1376 | case IEEE80211_IF_TYPE_VLAN: |
1377 | fc |= IEEE80211_FCTL_FROMDS; | 1377 | fc |= IEEE80211_FCTL_FROMDS; |
@@ -1707,7 +1707,7 @@ struct sk_buff *ieee80211_beacon_get(struct ieee80211_hw *hw, | |||
1707 | bdev = sdata->dev; | 1707 | bdev = sdata->dev; |
1708 | ap = &sdata->u.ap; | 1708 | ap = &sdata->u.ap; |
1709 | 1709 | ||
1710 | if (!ap || sdata->type != IEEE80211_IF_TYPE_AP || | 1710 | if (!ap || sdata->vif.type != IEEE80211_IF_TYPE_AP || |
1711 | !ap->beacon_head) { | 1711 | !ap->beacon_head) { |
1712 | #ifdef CONFIG_MAC80211_VERBOSE_DEBUG | 1712 | #ifdef CONFIG_MAC80211_VERBOSE_DEBUG |
1713 | if (net_ratelimit()) | 1713 | if (net_ratelimit()) |
@@ -1819,7 +1819,8 @@ ieee80211_get_buffered_bc(struct ieee80211_hw *hw, | |||
1819 | sdata = vif_to_sdata(vif); | 1819 | sdata = vif_to_sdata(vif); |
1820 | bdev = sdata->dev; | 1820 | bdev = sdata->dev; |
1821 | 1821 | ||
1822 | if (!bss || sdata->type != IEEE80211_IF_TYPE_AP || !bss->beacon_head) | 1822 | if (!bss || sdata->vif.type != IEEE80211_IF_TYPE_AP || |
1823 | !bss->beacon_head) | ||
1823 | return NULL; | 1824 | return NULL; |
1824 | 1825 | ||
1825 | if (bss->dtim_count != 0) | 1826 | if (bss->dtim_count != 0) |