mirror of
https://github.com/bolucat/Archive.git
synced 2026-04-23 00:17:16 +08:00
496 lines
16 KiB
Diff
496 lines
16 KiB
Diff
--- a/mac80211.c
|
|
+++ b/mac80211.c
|
|
@@ -1656,8 +1656,8 @@ EXPORT_SYMBOL_GPL(mt76_get_sar_power);
|
|
static void
|
|
__mt76_csa_finish(void *priv, u8 *mac, struct ieee80211_vif *vif)
|
|
{
|
|
- if (vif->bss_conf.csa_active && ieee80211_beacon_cntdwn_is_complete(vif, 0))
|
|
- ieee80211_csa_finish(vif, 0);
|
|
+ if (vif->bss_conf.csa_active && ieee80211_beacon_cntdwn_is_complete(vif))
|
|
+ ieee80211_csa_finish(vif);
|
|
}
|
|
|
|
void mt76_csa_finish(struct mt76_dev *dev)
|
|
@@ -1681,7 +1681,7 @@ __mt76_csa_check(void *priv, u8 *mac, st
|
|
if (!vif->bss_conf.csa_active)
|
|
return;
|
|
|
|
- dev->csa_complete |= ieee80211_beacon_cntdwn_is_complete(vif, 0);
|
|
+ dev->csa_complete |= ieee80211_beacon_cntdwn_is_complete(vif);
|
|
}
|
|
|
|
void mt76_csa_check(struct mt76_dev *dev)
|
|
--- a/mt7603/main.c
|
|
+++ b/mt7603/main.c
|
|
@@ -23,7 +23,7 @@ mt7603_start(struct ieee80211_hw *hw)
|
|
}
|
|
|
|
static void
|
|
-mt7603_stop(struct ieee80211_hw *hw, bool suspend)
|
|
+mt7603_stop(struct ieee80211_hw *hw)
|
|
{
|
|
struct mt7603_dev *dev = hw->priv;
|
|
|
|
@@ -694,10 +694,6 @@ static void mt7603_tx(struct ieee80211_h
|
|
}
|
|
|
|
const struct ieee80211_ops mt7603_ops = {
|
|
- .add_chanctx = ieee80211_emulate_add_chanctx,
|
|
- .remove_chanctx = ieee80211_emulate_remove_chanctx,
|
|
- .change_chanctx = ieee80211_emulate_change_chanctx,
|
|
- .switch_vif_chanctx = ieee80211_emulate_switch_vif_chanctx,
|
|
.tx = mt7603_tx,
|
|
.start = mt7603_start,
|
|
.stop = mt7603_stop,
|
|
--- a/mt7615/main.c
|
|
+++ b/mt7615/main.c
|
|
@@ -91,7 +91,7 @@ out:
|
|
return ret;
|
|
}
|
|
|
|
-static void mt7615_stop(struct ieee80211_hw *hw, bool suspend)
|
|
+static void mt7615_stop(struct ieee80211_hw *hw)
|
|
{
|
|
struct mt7615_dev *dev = mt7615_hw_dev(hw);
|
|
struct mt7615_phy *phy = mt7615_hw_phy(hw);
|
|
@@ -1313,10 +1313,6 @@ static void mt7615_set_rekey_data(struct
|
|
#endif /* CONFIG_PM */
|
|
|
|
const struct ieee80211_ops mt7615_ops = {
|
|
- .add_chanctx = ieee80211_emulate_add_chanctx,
|
|
- .remove_chanctx = ieee80211_emulate_remove_chanctx,
|
|
- .change_chanctx = ieee80211_emulate_change_chanctx,
|
|
- .switch_vif_chanctx = ieee80211_emulate_switch_vif_chanctx,
|
|
.tx = mt7615_tx,
|
|
.start = mt7615_start,
|
|
.stop = mt7615_stop,
|
|
--- a/mt7615/mcu.c
|
|
+++ b/mt7615/mcu.c
|
|
@@ -353,7 +353,7 @@ static void
|
|
mt7615_mcu_csa_finish(void *priv, u8 *mac, struct ieee80211_vif *vif)
|
|
{
|
|
if (vif->bss_conf.csa_active)
|
|
- ieee80211_csa_finish(vif, 0);
|
|
+ ieee80211_csa_finish(vif);
|
|
}
|
|
|
|
static void
|
|
@@ -394,7 +394,7 @@ mt7615_mcu_rx_radar_detected(struct mt76
|
|
if (mt76_phy_dfs_state(mphy) < MT_DFS_STATE_CAC)
|
|
return;
|
|
|
|
- ieee80211_radar_detected(mphy->hw, NULL);
|
|
+ ieee80211_radar_detected(mphy->hw);
|
|
dev->hw_pattern++;
|
|
}
|
|
|
|
--- a/mt7615/usb.c
|
|
+++ b/mt7615/usb.c
|
|
@@ -79,7 +79,7 @@ static void mt7663u_copy(struct mt76_dev
|
|
mutex_unlock(&usb->usb_ctrl_mtx);
|
|
}
|
|
|
|
-static void mt7663u_stop(struct ieee80211_hw *hw, bool suspend)
|
|
+static void mt7663u_stop(struct ieee80211_hw *hw)
|
|
{
|
|
struct mt7615_phy *phy = mt7615_hw_phy(hw);
|
|
struct mt7615_dev *dev = hw->priv;
|
|
--- a/mt76x0/pci.c
|
|
+++ b/mt76x0/pci.c
|
|
@@ -44,7 +44,7 @@ static void mt76x0e_stop_hw(struct mt76x
|
|
mt76_clear(dev, MT_WPDMA_GLO_CFG, MT_WPDMA_GLO_CFG_RX_DMA_EN);
|
|
}
|
|
|
|
-static void mt76x0e_stop(struct ieee80211_hw *hw, bool suspend)
|
|
+static void mt76x0e_stop(struct ieee80211_hw *hw)
|
|
{
|
|
struct mt76x02_dev *dev = hw->priv;
|
|
|
|
@@ -59,10 +59,6 @@ mt76x0e_flush(struct ieee80211_hw *hw, s
|
|
}
|
|
|
|
static const struct ieee80211_ops mt76x0e_ops = {
|
|
- .add_chanctx = ieee80211_emulate_add_chanctx,
|
|
- .remove_chanctx = ieee80211_emulate_remove_chanctx,
|
|
- .change_chanctx = ieee80211_emulate_change_chanctx,
|
|
- .switch_vif_chanctx = ieee80211_emulate_switch_vif_chanctx,
|
|
.tx = mt76x02_tx,
|
|
.start = mt76x0e_start,
|
|
.stop = mt76x0e_stop,
|
|
--- a/mt76x0/usb.c
|
|
+++ b/mt76x0/usb.c
|
|
@@ -77,7 +77,7 @@ static void mt76x0u_cleanup(struct mt76x
|
|
mt76u_queues_deinit(&dev->mt76);
|
|
}
|
|
|
|
-static void mt76x0u_stop(struct ieee80211_hw *hw, bool suspend)
|
|
+static void mt76x0u_stop(struct ieee80211_hw *hw)
|
|
{
|
|
struct mt76x02_dev *dev = hw->priv;
|
|
|
|
@@ -118,10 +118,6 @@ static int mt76x0u_start(struct ieee8021
|
|
}
|
|
|
|
static const struct ieee80211_ops mt76x0u_ops = {
|
|
- .add_chanctx = ieee80211_emulate_add_chanctx,
|
|
- .remove_chanctx = ieee80211_emulate_remove_chanctx,
|
|
- .change_chanctx = ieee80211_emulate_change_chanctx,
|
|
- .switch_vif_chanctx = ieee80211_emulate_switch_vif_chanctx,
|
|
.tx = mt76x02_tx,
|
|
.start = mt76x0u_start,
|
|
.stop = mt76x0u_stop,
|
|
--- a/mt76x02_dfs.c
|
|
+++ b/mt76x02_dfs.c
|
|
@@ -630,7 +630,7 @@ static void mt76x02_dfs_tasklet(struct t
|
|
radar_detected = mt76x02_dfs_check_detection(dev);
|
|
if (radar_detected) {
|
|
/* sw detector rx radar pattern */
|
|
- ieee80211_radar_detected(dev->mt76.hw, NULL);
|
|
+ ieee80211_radar_detected(dev->mt76.hw);
|
|
mt76x02_dfs_detector_reset(dev);
|
|
|
|
return;
|
|
@@ -658,7 +658,7 @@ static void mt76x02_dfs_tasklet(struct t
|
|
|
|
/* hw detector rx radar pattern */
|
|
dfs_pd->stats[i].hw_pattern++;
|
|
- ieee80211_radar_detected(dev->mt76.hw, NULL);
|
|
+ ieee80211_radar_detected(dev->mt76.hw);
|
|
mt76x02_dfs_detector_reset(dev);
|
|
|
|
return;
|
|
--- a/mt76x2/pci_main.c
|
|
+++ b/mt76x2/pci_main.c
|
|
@@ -24,7 +24,7 @@ mt76x2_start(struct ieee80211_hw *hw)
|
|
}
|
|
|
|
static void
|
|
-mt76x2_stop(struct ieee80211_hw *hw, bool suspend)
|
|
+mt76x2_stop(struct ieee80211_hw *hw)
|
|
{
|
|
struct mt76x02_dev *dev = hw->priv;
|
|
|
|
@@ -121,10 +121,6 @@ static int mt76x2_set_antenna(struct iee
|
|
}
|
|
|
|
const struct ieee80211_ops mt76x2_ops = {
|
|
- .add_chanctx = ieee80211_emulate_add_chanctx,
|
|
- .remove_chanctx = ieee80211_emulate_remove_chanctx,
|
|
- .change_chanctx = ieee80211_emulate_change_chanctx,
|
|
- .switch_vif_chanctx = ieee80211_emulate_switch_vif_chanctx,
|
|
.tx = mt76x02_tx,
|
|
.start = mt76x2_start,
|
|
.stop = mt76x2_stop,
|
|
--- a/mt76x2/usb_main.c
|
|
+++ b/mt76x2/usb_main.c
|
|
@@ -22,7 +22,7 @@ static int mt76x2u_start(struct ieee8021
|
|
return 0;
|
|
}
|
|
|
|
-static void mt76x2u_stop(struct ieee80211_hw *hw, bool suspend)
|
|
+static void mt76x2u_stop(struct ieee80211_hw *hw)
|
|
{
|
|
struct mt76x02_dev *dev = hw->priv;
|
|
|
|
@@ -88,10 +88,6 @@ mt76x2u_config(struct ieee80211_hw *hw,
|
|
}
|
|
|
|
const struct ieee80211_ops mt76x2u_ops = {
|
|
- .add_chanctx = ieee80211_emulate_add_chanctx,
|
|
- .remove_chanctx = ieee80211_emulate_remove_chanctx,
|
|
- .change_chanctx = ieee80211_emulate_change_chanctx,
|
|
- .switch_vif_chanctx = ieee80211_emulate_switch_vif_chanctx,
|
|
.tx = mt76x02_tx,
|
|
.start = mt76x2u_start,
|
|
.stop = mt76x2u_stop,
|
|
--- a/mt7915/main.c
|
|
+++ b/mt7915/main.c
|
|
@@ -108,7 +108,7 @@ static int mt7915_start(struct ieee80211
|
|
return ret;
|
|
}
|
|
|
|
-static void mt7915_stop(struct ieee80211_hw *hw, bool suspend)
|
|
+static void mt7915_stop(struct ieee80211_hw *hw)
|
|
{
|
|
struct mt7915_dev *dev = mt7915_hw_dev(hw);
|
|
struct mt7915_phy *phy = mt7915_hw_phy(hw);
|
|
@@ -1699,10 +1699,6 @@ mt7915_reconfig_complete(struct ieee8021
|
|
}
|
|
|
|
const struct ieee80211_ops mt7915_ops = {
|
|
- .add_chanctx = ieee80211_emulate_add_chanctx,
|
|
- .remove_chanctx = ieee80211_emulate_remove_chanctx,
|
|
- .change_chanctx = ieee80211_emulate_change_chanctx,
|
|
- .switch_vif_chanctx = ieee80211_emulate_switch_vif_chanctx,
|
|
.tx = mt7915_tx,
|
|
.start = mt7915_start,
|
|
.stop = mt7915_stop,
|
|
--- a/mt7915/mcu.c
|
|
+++ b/mt7915/mcu.c
|
|
@@ -253,7 +253,7 @@ mt7915_mcu_csa_finish(void *priv, u8 *ma
|
|
if (!vif->bss_conf.csa_active || vif->type == NL80211_IFTYPE_STATION)
|
|
return;
|
|
|
|
- ieee80211_csa_finish(vif, 0);
|
|
+ ieee80211_csa_finish(vif);
|
|
}
|
|
|
|
static void
|
|
@@ -318,7 +318,7 @@ mt7915_mcu_rx_radar_detected(struct mt79
|
|
&dev->rdd2_chandef,
|
|
GFP_ATOMIC);
|
|
else
|
|
- ieee80211_radar_detected(mphy->hw, NULL);
|
|
+ ieee80211_radar_detected(mphy->hw);
|
|
dev->hw_pattern++;
|
|
}
|
|
|
|
@@ -356,7 +356,7 @@ mt7915_mcu_cca_finish(void *priv, u8 *ma
|
|
if (!vif->bss_conf.color_change_active || vif->type == NL80211_IFTYPE_STATION)
|
|
return;
|
|
|
|
- ieee80211_color_change_finish(vif, 0);
|
|
+ ieee80211_color_change_finish(vif);
|
|
}
|
|
|
|
static void
|
|
@@ -488,10 +488,10 @@ static bool mt7915_check_he_obss_narrow_
|
|
.tolerated = true,
|
|
};
|
|
|
|
- if (!(vif->bss_conf.chanreq.oper.chan->flags & IEEE80211_CHAN_RADAR))
|
|
+ if (!(vif->bss_conf.chandef.chan->flags & IEEE80211_CHAN_RADAR))
|
|
return false;
|
|
|
|
- cfg80211_bss_iter(hw->wiphy, &vif->bss_conf.chanreq.oper,
|
|
+ cfg80211_bss_iter(hw->wiphy, &vif->bss_conf.chandef,
|
|
mt7915_check_he_obss_narrow_bw_ru_iter,
|
|
&iter_data);
|
|
|
|
--- a/mt7921/main.c
|
|
+++ b/mt7921/main.c
|
|
@@ -268,7 +268,7 @@ static int mt7921_start(struct ieee80211
|
|
return err;
|
|
}
|
|
|
|
-static void mt7921_stop(struct ieee80211_hw *hw, bool suspend)
|
|
+static void mt7921_stop(struct ieee80211_hw *hw)
|
|
{
|
|
struct mt792x_dev *dev = mt792x_hw_dev(hw);
|
|
int err = 0;
|
|
@@ -281,7 +281,7 @@ static void mt7921_stop(struct ieee80211
|
|
return;
|
|
}
|
|
|
|
- mt792x_stop(hw, false);
|
|
+ mt792x_stop(hw);
|
|
}
|
|
|
|
static int
|
|
--- a/mt7925/main.c
|
|
+++ b/mt7925/main.c
|
|
@@ -995,7 +995,7 @@ mt7925_mac_select_links(struct mt76_dev
|
|
continue;
|
|
|
|
data[n_data].link_id = link_id;
|
|
- data[n_data].band = link_conf->chanreq.oper.chan->band;
|
|
+ data[n_data].band = link_conf->chandef.chan->band;
|
|
n_data++;
|
|
}
|
|
rcu_read_unlock();
|
|
@@ -1026,7 +1026,7 @@ mt7925_mac_set_links(struct mt76_dev *md
|
|
struct mt792x_vif *mvif = (struct mt792x_vif *)vif->drv_priv;
|
|
struct ieee80211_bss_conf *link_conf =
|
|
mt792x_vif_to_bss_conf(vif, mvif->deflink_id);
|
|
- struct cfg80211_chan_def *chandef = &link_conf->chanreq.oper;
|
|
+ struct cfg80211_chan_def *chandef = &link_conf->chandef;
|
|
enum nl80211_band band = chandef->chan->band, secondary_band;
|
|
|
|
u16 sel_links = mt7925_mac_select_links(mdev, vif);
|
|
@@ -1036,7 +1036,7 @@ mt7925_mac_set_links(struct mt76_dev *md
|
|
return;
|
|
|
|
link_conf = mt792x_vif_to_bss_conf(vif, secondary_link_id);
|
|
- secondary_band = link_conf->chanreq.oper.chan->band;
|
|
+ secondary_band = link_conf->chandef.chan->band;
|
|
|
|
if (band == NL80211_BAND_2GHZ ||
|
|
(band == NL80211_BAND_5GHZ && secondary_band == NL80211_BAND_6GHZ)) {
|
|
--- a/mt7925/mcu.c
|
|
+++ b/mt7925/mcu.c
|
|
@@ -1166,7 +1166,7 @@ int mt7925_mcu_set_mlo_roc(struct mt792x
|
|
if (WARN_ON_ONCE(!link_conf))
|
|
return -EPERM;
|
|
|
|
- links[i].chan = link_conf->chanreq.oper.chan;
|
|
+ links[i].chan = link_conf->chandef.chan;
|
|
if (WARN_ON_ONCE(!links[i].chan))
|
|
return -EPERM;
|
|
|
|
@@ -1597,7 +1597,7 @@ mt7925_mcu_sta_phy_tlv(struct sk_buff *s
|
|
link_conf = mt792x_vif_to_bss_conf(vif, link_sta->link_id);
|
|
mconf = mt792x_vif_to_link(mvif, link_sta->link_id);
|
|
chandef = mconf->mt76.ctx ? &mconf->mt76.ctx->def :
|
|
- &link_conf->chanreq.oper;
|
|
+ &link_conf->chandef;
|
|
|
|
tlv = mt76_connac_mcu_add_tlv(skb, STA_REC_PHY, sizeof(*phy));
|
|
phy = (struct sta_rec_phy *)tlv;
|
|
@@ -1675,7 +1675,7 @@ mt7925_mcu_sta_rate_ctrl_tlv(struct sk_b
|
|
link_conf = mt792x_vif_to_bss_conf(vif, link_sta->link_id);
|
|
mconf = mt792x_vif_to_link(mvif, link_sta->link_id);
|
|
chandef = mconf->mt76.ctx ? &mconf->mt76.ctx->def :
|
|
- &link_conf->chanreq.oper;
|
|
+ &link_conf->chandef;
|
|
band = chandef->chan->band;
|
|
|
|
tlv = mt76_connac_mcu_add_tlv(skb, STA_REC_RA, sizeof(*ra_info));
|
|
@@ -2169,7 +2169,7 @@ void mt7925_mcu_bss_rlm_tlv(struct sk_bu
|
|
struct ieee80211_chanctx_conf *ctx)
|
|
{
|
|
struct cfg80211_chan_def *chandef = ctx ? &ctx->def :
|
|
- &link_conf->chanreq.oper;
|
|
+ &link_conf->chandef;
|
|
int freq1 = chandef->center_freq1, freq2 = chandef->center_freq2;
|
|
enum nl80211_band band = chandef->chan->band;
|
|
struct bss_rlm_tlv *req;
|
|
@@ -2309,7 +2309,7 @@ mt7925_mcu_bss_basic_tlv(struct sk_buff
|
|
struct ieee80211_vif *vif = link_conf->vif;
|
|
struct mt792x_bss_conf *mconf = mt792x_link_conf_to_mconf(link_conf);
|
|
struct cfg80211_chan_def *chandef = ctx ? &ctx->def :
|
|
- &link_conf->chanreq.oper;
|
|
+ &link_conf->chandef;
|
|
enum nl80211_band band = chandef->chan->band;
|
|
struct mt76_connac_bss_basic_tlv *basic_req;
|
|
struct mt792x_link_sta *mlink;
|
|
@@ -2436,7 +2436,7 @@ mt7925_mcu_bss_bmc_tlv(struct sk_buff *s
|
|
struct ieee80211_bss_conf *link_conf)
|
|
{
|
|
struct cfg80211_chan_def *chandef = ctx ? &ctx->def :
|
|
- &link_conf->chanreq.oper;
|
|
+ &link_conf->chandef;
|
|
struct mt792x_bss_conf *mconf = mt792x_link_conf_to_mconf(link_conf);
|
|
enum nl80211_band band = chandef->chan->band;
|
|
struct mt76_vif *mvif = &mconf->mt76;
|
|
--- a/mt792x.h
|
|
+++ b/mt792x.h
|
|
@@ -337,7 +337,7 @@ static inline bool mt792x_dma_need_reini
|
|
#define mt792x_mutex_release(dev) \
|
|
mt76_connac_mutex_release(&(dev)->mt76, &(dev)->pm)
|
|
|
|
-void mt792x_stop(struct ieee80211_hw *hw, bool suspend);
|
|
+void mt792x_stop(struct ieee80211_hw *hw);
|
|
void mt792x_pm_wake_work(struct work_struct *work);
|
|
void mt792x_pm_power_save_work(struct work_struct *work);
|
|
void mt792x_reset(struct mt76_dev *mdev);
|
|
@@ -457,7 +457,7 @@ void mt792xu_wr(struct mt76_dev *dev, u3
|
|
u32 mt792xu_rmw(struct mt76_dev *dev, u32 addr, u32 mask, u32 val);
|
|
void mt792xu_copy(struct mt76_dev *dev, u32 offset, const void *data, int len);
|
|
void mt792xu_disconnect(struct usb_interface *usb_intf);
|
|
-void mt792xu_stop(struct ieee80211_hw *hw, bool suspend);
|
|
+void mt792xu_stop(struct ieee80211_hw *hw);
|
|
|
|
static inline void
|
|
mt792x_skb_add_usb_sdio_hdr(struct mt792x_dev *dev, struct sk_buff *skb,
|
|
--- a/mt792x_core.c
|
|
+++ b/mt792x_core.c
|
|
@@ -117,7 +117,7 @@ void mt792x_tx(struct ieee80211_hw *hw,
|
|
}
|
|
EXPORT_SYMBOL_GPL(mt792x_tx);
|
|
|
|
-void mt792x_stop(struct ieee80211_hw *hw, bool suspend)
|
|
+void mt792x_stop(struct ieee80211_hw *hw)
|
|
{
|
|
struct mt792x_dev *dev = mt792x_hw_dev(hw);
|
|
struct mt792x_phy *phy = mt792x_hw_phy(hw);
|
|
@@ -733,10 +733,6 @@ mt792x_get_mac80211_ops(struct device *d
|
|
if (!(*fw_features & MT792x_FW_CAP_CNM)) {
|
|
ops->remain_on_channel = NULL;
|
|
ops->cancel_remain_on_channel = NULL;
|
|
- ops->add_chanctx = ieee80211_emulate_add_chanctx;
|
|
- ops->remove_chanctx = ieee80211_emulate_remove_chanctx;
|
|
- ops->change_chanctx = ieee80211_emulate_change_chanctx;
|
|
- ops->switch_vif_chanctx = ieee80211_emulate_switch_vif_chanctx;
|
|
ops->assign_vif_chanctx = NULL;
|
|
ops->unassign_vif_chanctx = NULL;
|
|
ops->mgd_prepare_tx = NULL;
|
|
--- a/mt792x_usb.c
|
|
+++ b/mt792x_usb.c
|
|
@@ -285,12 +285,12 @@ int mt792xu_init_reset(struct mt792x_dev
|
|
}
|
|
EXPORT_SYMBOL_GPL(mt792xu_init_reset);
|
|
|
|
-void mt792xu_stop(struct ieee80211_hw *hw, bool suspend)
|
|
+void mt792xu_stop(struct ieee80211_hw *hw)
|
|
{
|
|
struct mt792x_dev *dev = mt792x_hw_dev(hw);
|
|
|
|
mt76u_stop_tx(&dev->mt76);
|
|
- mt792x_stop(hw, false);
|
|
+ mt792x_stop(hw);
|
|
}
|
|
EXPORT_SYMBOL_GPL(mt792xu_stop);
|
|
|
|
--- a/mt7996/main.c
|
|
+++ b/mt7996/main.c
|
|
@@ -93,7 +93,7 @@ static int mt7996_start(struct ieee80211
|
|
return ret;
|
|
}
|
|
|
|
-static void mt7996_stop(struct ieee80211_hw *hw, bool suspend)
|
|
+static void mt7996_stop(struct ieee80211_hw *hw)
|
|
{
|
|
struct mt7996_dev *dev = mt7996_hw_dev(hw);
|
|
struct mt7996_phy *phy = mt7996_hw_phy(hw);
|
|
@@ -1447,10 +1447,6 @@ mt7996_net_fill_forward_path(struct ieee
|
|
#endif
|
|
|
|
const struct ieee80211_ops mt7996_ops = {
|
|
- .add_chanctx = ieee80211_emulate_add_chanctx,
|
|
- .remove_chanctx = ieee80211_emulate_remove_chanctx,
|
|
- .change_chanctx = ieee80211_emulate_change_chanctx,
|
|
- .switch_vif_chanctx = ieee80211_emulate_switch_vif_chanctx,
|
|
.tx = mt7996_tx,
|
|
.start = mt7996_start,
|
|
.stop = mt7996_stop,
|
|
--- a/mt7996/mcu.c
|
|
+++ b/mt7996/mcu.c
|
|
@@ -353,7 +353,7 @@ mt7996_mcu_csa_finish(void *priv, u8 *ma
|
|
if (!vif->bss_conf.csa_active || vif->type == NL80211_IFTYPE_STATION)
|
|
return;
|
|
|
|
- ieee80211_csa_finish(vif, 0);
|
|
+ ieee80211_csa_finish(vif);
|
|
}
|
|
|
|
static void
|
|
@@ -383,7 +383,7 @@ mt7996_mcu_rx_radar_detected(struct mt79
|
|
&dev->rdd2_chandef,
|
|
GFP_ATOMIC);
|
|
else
|
|
- ieee80211_radar_detected(mphy->hw, NULL);
|
|
+ ieee80211_radar_detected(mphy->hw);
|
|
dev->hw_pattern++;
|
|
}
|
|
|
|
@@ -433,7 +433,7 @@ mt7996_mcu_cca_finish(void *priv, u8 *ma
|
|
if (!vif->bss_conf.color_change_active || vif->type == NL80211_IFTYPE_STATION)
|
|
return;
|
|
|
|
- ieee80211_color_change_finish(vif, 0);
|
|
+ ieee80211_color_change_finish(vif);
|
|
}
|
|
|
|
static void
|
|
--- a/tx.c
|
|
+++ b/tx.c
|
|
@@ -350,7 +350,7 @@ mt76_tx(struct mt76_phy *phy, struct iee
|
|
info->hw_queue |= FIELD_PREP(MT_TX_HW_QUEUE_PHY, phy->band_idx);
|
|
|
|
if ((info->flags & IEEE80211_TX_CTL_TX_OFFCHAN) ||
|
|
- (info->control.flags & IEEE80211_TX_CTRL_DONT_USE_RATE_MASK))
|
|
+ (info->control.flags & IEEE80211_TX_CTRL_SCAN_TX))
|
|
head = &wcid->tx_offchannel;
|
|
else
|
|
head = &wcid->tx_pending;
|