diff options
Diffstat (limited to 'net/mac80211/tx.c')
-rw-r--r-- | net/mac80211/tx.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c index b5468876287e..d8ef3417bf2b 100644 --- a/net/mac80211/tx.c +++ b/net/mac80211/tx.c | |||
@@ -1676,7 +1676,7 @@ netdev_tx_t ieee80211_monitor_start_xmit(struct sk_buff *skb, | |||
1676 | if (!chanctx_conf) | 1676 | if (!chanctx_conf) |
1677 | goto fail_rcu; | 1677 | goto fail_rcu; |
1678 | 1678 | ||
1679 | chan = chanctx_conf->channel; | 1679 | chan = chanctx_conf->def.chan; |
1680 | 1680 | ||
1681 | /* | 1681 | /* |
1682 | * Frame injection is not allowed if beaconing is not allowed | 1682 | * Frame injection is not allowed if beaconing is not allowed |
@@ -1779,7 +1779,7 @@ netdev_tx_t ieee80211_subif_start_xmit(struct sk_buff *skb, | |||
1779 | chanctx_conf = rcu_dereference(ap_sdata->vif.chanctx_conf); | 1779 | chanctx_conf = rcu_dereference(ap_sdata->vif.chanctx_conf); |
1780 | if (!chanctx_conf) | 1780 | if (!chanctx_conf) |
1781 | goto fail_rcu; | 1781 | goto fail_rcu; |
1782 | band = chanctx_conf->channel->band; | 1782 | band = chanctx_conf->def.chan->band; |
1783 | if (sta) | 1783 | if (sta) |
1784 | break; | 1784 | break; |
1785 | /* fall through */ | 1785 | /* fall through */ |
@@ -1794,7 +1794,7 @@ netdev_tx_t ieee80211_subif_start_xmit(struct sk_buff *skb, | |||
1794 | chanctx_conf = rcu_dereference(sdata->vif.chanctx_conf); | 1794 | chanctx_conf = rcu_dereference(sdata->vif.chanctx_conf); |
1795 | if (!chanctx_conf) | 1795 | if (!chanctx_conf) |
1796 | goto fail_rcu; | 1796 | goto fail_rcu; |
1797 | band = chanctx_conf->channel->band; | 1797 | band = chanctx_conf->def.chan->band; |
1798 | break; | 1798 | break; |
1799 | case NL80211_IFTYPE_WDS: | 1799 | case NL80211_IFTYPE_WDS: |
1800 | fc |= cpu_to_le16(IEEE80211_FCTL_FROMDS | IEEE80211_FCTL_TODS); | 1800 | fc |= cpu_to_le16(IEEE80211_FCTL_FROMDS | IEEE80211_FCTL_TODS); |
@@ -1871,7 +1871,7 @@ netdev_tx_t ieee80211_subif_start_xmit(struct sk_buff *skb, | |||
1871 | chanctx_conf = rcu_dereference(sdata->vif.chanctx_conf); | 1871 | chanctx_conf = rcu_dereference(sdata->vif.chanctx_conf); |
1872 | if (!chanctx_conf) | 1872 | if (!chanctx_conf) |
1873 | goto fail_rcu; | 1873 | goto fail_rcu; |
1874 | band = chanctx_conf->channel->band; | 1874 | band = chanctx_conf->def.chan->band; |
1875 | break; | 1875 | break; |
1876 | #endif | 1876 | #endif |
1877 | case NL80211_IFTYPE_STATION: | 1877 | case NL80211_IFTYPE_STATION: |
@@ -1930,7 +1930,7 @@ netdev_tx_t ieee80211_subif_start_xmit(struct sk_buff *skb, | |||
1930 | chanctx_conf = rcu_dereference(sdata->vif.chanctx_conf); | 1930 | chanctx_conf = rcu_dereference(sdata->vif.chanctx_conf); |
1931 | if (!chanctx_conf) | 1931 | if (!chanctx_conf) |
1932 | goto fail_rcu; | 1932 | goto fail_rcu; |
1933 | band = chanctx_conf->channel->band; | 1933 | band = chanctx_conf->def.chan->band; |
1934 | break; | 1934 | break; |
1935 | case NL80211_IFTYPE_ADHOC: | 1935 | case NL80211_IFTYPE_ADHOC: |
1936 | /* DA SA BSSID */ | 1936 | /* DA SA BSSID */ |
@@ -1941,7 +1941,7 @@ netdev_tx_t ieee80211_subif_start_xmit(struct sk_buff *skb, | |||
1941 | chanctx_conf = rcu_dereference(sdata->vif.chanctx_conf); | 1941 | chanctx_conf = rcu_dereference(sdata->vif.chanctx_conf); |
1942 | if (!chanctx_conf) | 1942 | if (!chanctx_conf) |
1943 | goto fail_rcu; | 1943 | goto fail_rcu; |
1944 | band = chanctx_conf->channel->band; | 1944 | band = chanctx_conf->def.chan->band; |
1945 | break; | 1945 | break; |
1946 | default: | 1946 | default: |
1947 | goto fail_rcu; | 1947 | goto fail_rcu; |
@@ -2191,7 +2191,7 @@ static bool ieee80211_tx_pending_skb(struct ieee80211_local *local, | |||
2191 | return true; | 2191 | return true; |
2192 | } | 2192 | } |
2193 | result = ieee80211_tx(sdata, skb, true, | 2193 | result = ieee80211_tx(sdata, skb, true, |
2194 | chanctx_conf->channel->band); | 2194 | chanctx_conf->def.chan->band); |
2195 | } else { | 2195 | } else { |
2196 | struct sk_buff_head skbs; | 2196 | struct sk_buff_head skbs; |
2197 | 2197 | ||
@@ -2455,7 +2455,7 @@ struct sk_buff *ieee80211_beacon_get_tim(struct ieee80211_hw *hw, | |||
2455 | *pos++ = WLAN_EID_SSID; | 2455 | *pos++ = WLAN_EID_SSID; |
2456 | *pos++ = 0x0; | 2456 | *pos++ = 0x0; |
2457 | 2457 | ||
2458 | band = chanctx_conf->channel->band; | 2458 | band = chanctx_conf->def.chan->band; |
2459 | 2459 | ||
2460 | if (ieee80211_add_srates_ie(sdata, skb, true, band) || | 2460 | if (ieee80211_add_srates_ie(sdata, skb, true, band) || |
2461 | mesh_add_ds_params_ie(skb, sdata) || | 2461 | mesh_add_ds_params_ie(skb, sdata) || |
@@ -2474,7 +2474,7 @@ struct sk_buff *ieee80211_beacon_get_tim(struct ieee80211_hw *hw, | |||
2474 | goto out; | 2474 | goto out; |
2475 | } | 2475 | } |
2476 | 2476 | ||
2477 | band = chanctx_conf->channel->band; | 2477 | band = chanctx_conf->def.chan->band; |
2478 | 2478 | ||
2479 | info = IEEE80211_SKB_CB(skb); | 2479 | info = IEEE80211_SKB_CB(skb); |
2480 | 2480 | ||
@@ -2754,7 +2754,7 @@ ieee80211_get_buffered_bc(struct ieee80211_hw *hw, | |||
2754 | info = IEEE80211_SKB_CB(skb); | 2754 | info = IEEE80211_SKB_CB(skb); |
2755 | 2755 | ||
2756 | tx.flags |= IEEE80211_TX_PS_BUFFERED; | 2756 | tx.flags |= IEEE80211_TX_PS_BUFFERED; |
2757 | info->band = chanctx_conf->channel->band; | 2757 | info->band = chanctx_conf->def.chan->band; |
2758 | 2758 | ||
2759 | if (invoke_tx_handlers(&tx)) | 2759 | if (invoke_tx_handlers(&tx)) |
2760 | skb = NULL; | 2760 | skb = NULL; |