| /linux/drivers/net/wireless/mediatek/mt76/mt76x0/ |
| H A D | main.c | 11 int mt76x0_set_channel(struct mt76_phy *mphy) in mt76x0_set_channel() argument 13 struct mt76x02_dev *dev = container_of(mphy->dev, struct mt76x02_dev, mt76); in mt76x0_set_channel() 19 mt76x0_phy_set_channel(dev, &mphy->chandef); in mt76x0_set_channel() 39 struct mt76_phy *mphy = &dev->mphy; in mt76x0_set_sar_specs() local 42 if (!cfg80211_chandef_valid(&mphy->chandef)) in mt76x0_set_sar_specs() 49 dev->txpower_conf = mt76_get_sar_power(mphy, mphy->chandef.chan, in mt76x0_set_sar_specs() 51 if (test_bit(MT76_STATE_RUNNING, &mphy->state)) in mt76x0_set_sar_specs() 65 mt76_update_channel(&dev->mphy); in mt76x0_config() 70 struct mt76_phy *mphy = &dev->mphy; in mt76x0_config() local 73 dev->txpower_conf = mt76_get_sar_power(mphy, in mt76x0_config() [all …]
|
| /linux/drivers/net/wireless/mediatek/mt76/mt7925/ |
| H A D | init.c | 108 ret = mt76_eeprom_override(&dev->mphy); in __mt7925_init_hardware() 121 ret = mt7925_mcu_set_dbdc(&dev->mphy, true); in __mt7925_init_hardware() 137 set_bit(MT76_STATE_INITIALIZED, &dev->mphy.state); in mt7925_init_hardware() 200 mt76_set_stream_caps(&dev->mphy, true); in mt7925_init_work() 261 INIT_DELAYED_WORK(&dev->mphy.mac_work, mt792x_mac_work); in mt7925_register_device() 303 dev->mphy.sband_2g.sband.ht_cap.cap |= in mt7925_register_device() 306 dev->mphy.sband_2g.sband.ht_cap.ampdu_density = in mt7925_register_device() 308 dev->mphy.sband_5g.sband.ht_cap.cap |= in mt7925_register_device() 311 dev->mphy.sband_2g.sband.ht_cap.ampdu_density = in mt7925_register_device() 313 dev->mphy.sband_5g.sband.vht_cap.cap |= in mt7925_register_device() [all …]
|
| H A D | pci_mac.c | 83 set_bit(MT76_RESET, &dev->mphy.state); in mt7925e_mac_reset() 84 set_bit(MT76_MCU_RESET, &dev->mphy.state); in mt7925e_mac_reset() 88 mt76_txq_schedule_all(&dev->mphy); in mt7925e_mac_reset() 118 clear_bit(MT76_MCU_RESET, &dev->mphy.state); in mt7925e_mac_reset() 147 err = mt7925_mcu_set_dbdc(&dev->mphy, true); in mt7925e_mac_reset() 154 clear_bit(MT76_RESET, &dev->mphy.state); in mt7925e_mac_reset()
|
| H A D | usb.c | 74 set_bit(MT76_STATE_MCU_RUNNING, &dev->mphy.state); in mt7925u_mcu_init() 91 mt76_txq_schedule_all(&dev->mphy); in mt7925u_mac_reset() 94 set_bit(MT76_RESET, &dev->mphy.state); in mt7925u_mac_reset() 95 set_bit(MT76_MCU_RESET, &dev->mphy.state); in mt7925u_mac_reset() 105 clear_bit(MT76_MCU_RESET, &dev->mphy.state); in mt7925u_mac_reset() 136 err = mt7925_mcu_set_dbdc(&dev->mphy, true); in mt7925u_mac_reset() 143 clear_bit(MT76_RESET, &dev->mphy.state); in mt7925u_mac_reset()
|
| H A D | mac.c | 381 struct mt76_phy *mphy = &dev->mt76.phy; in mt7925_mac_fill_rx() local 397 if (!test_bit(MT76_STATE_RUNNING, &mphy->state)) in mt7925_mac_fill_rx() 425 sband = &mphy->sband_5g.sband; in mt7925_mac_fill_rx() 428 sband = &mphy->sband_6g.sband; in mt7925_mac_fill_rx() 431 sband = &mphy->sband_2g.sband; in mt7925_mac_fill_rx() 540 status->chains = mphy->antenna_mask; in mt7925_mac_fill_rx() 930 struct mt76_phy *mphy; in mt7925_mac_add_txs_skb() local 974 mphy = mt76_dev_phy(mdev, wcid->phy_idx); in mt7925_mac_add_txs_skb() 976 if (mphy->chandef.chan->band == NL80211_BAND_5GHZ) in mt7925_mac_add_txs_skb() 977 sband = &mphy->sband_5g.sband; in mt7925_mac_add_txs_skb() [all …]
|
| /linux/drivers/phy/ralink/ |
| H A D | phy-mt7621-pci.c | 212 struct mt7621_pci_phy *mphy = phy_get_drvdata(phy); in mt7621_pci_phy_init() local 214 if (mphy->bypass_pipe_rst) in mt7621_pci_phy_init() 215 mt7621_bypass_pipe_rst(mphy); in mt7621_pci_phy_init() 217 return mt7621_set_phy_for_ssc(mphy); in mt7621_pci_phy_init() 222 struct mt7621_pci_phy *mphy = phy_get_drvdata(phy); in mt7621_pci_phy_power_on() local 225 mt7621_phy_rmw(mphy, RG_PE1_FRC_PHY_REG, in mt7621_pci_phy_power_on() 228 if (mphy->has_dual_port) { in mt7621_pci_phy_power_on() 229 mt7621_phy_rmw(mphy, RG_PE1_FRC_PHY_REG + RG_P0_TO_P1_WIDTH, in mt7621_pci_phy_power_on() 238 struct mt7621_pci_phy *mphy = phy_get_drvdata(phy); in mt7621_pci_phy_power_off() local 241 mt7621_phy_rmw(mphy, RG_PE1_FRC_PHY_REG, in mt7621_pci_phy_power_off() [all …]
|
| /linux/drivers/net/wireless/mediatek/mt76/mt7915/ |
| H A D | init.c | 258 struct mt76_phy *mphy; in mt7915_led_set_config() local 261 mphy = container_of(led_cdev, struct mt76_phy, leds.cdev); in mt7915_led_set_config() 262 dev = container_of(mphy->dev, struct mt7915_dev, mt76); in mt7915_led_set_config() 268 mt76_wr(dev, MT_LED_STATUS_0(mphy->band_idx), val); in mt7915_led_set_config() 269 mt76_wr(dev, MT_LED_STATUS_1(mphy->band_idx), val); in mt7915_led_set_config() 272 mt76_wr(dev, MT_LED_EN(mphy->band_idx), 1); in mt7915_led_set_config() 276 if (dev->mphy.leds.al) in mt7915_led_set_config() 278 if (mphy->band_idx) in mt7915_led_set_config() 281 mt76_wr(dev, MT_LED_CTRL(mphy->band_idx), val); in mt7915_led_set_config() 282 mt76_clear(dev, MT_LED_CTRL(mphy->band_idx), MT_LED_CTRL_KICK); in mt7915_led_set_config() [all …]
|
| H A D | testmode.c | 41 struct mt76_phy *mphy = phy->mt76; in mt7915_tm_set_tx_power() local 42 struct cfg80211_chan_def *chandef = &mphy->chandef; in mt7915_tm_set_tx_power() 257 struct mt76_phy *mphy = phy->mt76; in mt7915_tm_set_tx_len() local 258 struct mt76_testmode_data *td = &mphy->test; in mt7915_tm_set_tx_len() 274 if (mphy->chandef.chan->band == NL80211_BAND_5GHZ) in mt7915_tm_set_tx_len() 275 sband = &mphy->sband_5g.sband; in mt7915_tm_set_tx_len() 276 else if (mphy->chandef.chan->band == NL80211_BAND_6GHZ) in mt7915_tm_set_tx_len() 277 sband = &mphy->sband_6g.sband; in mt7915_tm_set_tx_len() 279 sband = &mphy->sband_2g.sband; in mt7915_tm_set_tx_len() 308 switch (mphy->chandef.width) { in mt7915_tm_set_tx_len() [all …]
|
| H A D | mac.c | 267 struct mt76_phy *mphy = &dev->mt76.phy; in mt7915_mac_fill_rx() local 292 mphy = dev->mt76.phys[MT_BAND1]; in mt7915_mac_fill_rx() 293 if (!mphy) in mt7915_mac_fill_rx() 296 phy = mphy->priv; in mt7915_mac_fill_rx() 300 if (!test_bit(MT76_STATE_RUNNING, &mphy->state)) in mt7915_mac_fill_rx() 323 status->freq = mphy->chandef.chan->center_freq; in mt7915_mac_fill_rx() 324 status->band = mphy->chandef.chan->band; in mt7915_mac_fill_rx() 326 sband = &mphy->sband_5g.sband; in mt7915_mac_fill_rx() 328 sband = &mphy->sband_6g.sband; in mt7915_mac_fill_rx() 330 sband = &mphy->sband_2g.sband; in mt7915_mac_fill_rx() [all …]
|
| H A D | eeprom.c | 219 struct mt76_phy *mphy = phy->mt76; in mt7915_eeprom_parse_hw_cap() local 259 mphy->chainmask = BIT(path) - 1; in mt7915_eeprom_parse_hw_cap() 261 mphy->chainmask <<= dev->chainshift; in mt7915_eeprom_parse_hw_cap() 262 mphy->antenna_mask = BIT(nss) - 1; in mt7915_eeprom_parse_hw_cap() 263 dev->chainmask |= mphy->chainmask; in mt7915_eeprom_parse_hw_cap() 264 dev->chainshift = hweight8(dev->mphy.chainmask); in mt7915_eeprom_parse_hw_cap() 284 memcpy(dev->mphy.macaddr, dev->mt76.eeprom.data + MT_EE_MAC_ADDR, in mt7915_eeprom_init() 287 return mt76_eeprom_override(&dev->mphy); in mt7915_eeprom_init()
|
| /linux/drivers/net/wireless/mediatek/mt76/mt7615/ |
| H A D | mac.c | 199 mt7615_get_status_freq_info(struct mt7615_dev *dev, struct mt76_phy *mphy, in mt7615_get_status_freq_info() argument 202 if (!test_bit(MT76_HW_SCANNING, &mphy->state) && in mt7615_get_status_freq_info() 203 !test_bit(MT76_HW_SCHED_SCANNING, &mphy->state) && in mt7615_get_status_freq_info() 204 !test_bit(MT76_STATE_ROC, &mphy->state)) { in mt7615_get_status_freq_info() 205 status->freq = mphy->chandef.chan->center_freq; in mt7615_get_status_freq_info() 206 status->band = mphy->chandef.chan->band; in mt7615_get_status_freq_info() 333 struct mt76_phy *mphy = &dev->mt76.phy; in mt7615_mac_fill_rx() local 498 mphy = dev->mt76.phys[MT_BAND1]; in mt7615_mac_fill_rx() 506 mt7615_get_status_freq_info(dev, mphy, status, chfreq); in mt7615_mac_fill_rx() 508 sband = &mphy->sband_5g.sband; in mt7615_mac_fill_rx() [all …]
|
| H A D | pci_mac.c | 126 mt76_queue_tx_cleanup(dev, dev->mphy.q_tx[i], true); in mt7615_dma_reset() 220 set_bit(MT76_RESET, &dev->mphy.state); in mt7615_mac_reset_work() 221 set_bit(MT76_MCU_RESET, &dev->mphy.state); in mt7615_mac_reset_work() 223 cancel_delayed_work_sync(&dev->mphy.mac_work); in mt7615_mac_reset_work() 234 mt76_txq_schedule_all(&dev->mphy); in mt7615_mac_reset_work() 259 clear_bit(MT76_MCU_RESET, &dev->mphy.state); in mt7615_mac_reset_work() 260 clear_bit(MT76_RESET, &dev->mphy.state); in mt7615_mac_reset_work() 290 ieee80211_queue_delayed_work(mt76_hw(dev), &dev->mphy.mac_work, in mt7615_mac_reset_work()
|
| /linux/drivers/net/wireless/mediatek/mt76/mt7603/ |
| H A D | eeprom.c | 175 dev->mphy.cap.has_2ghz = true; in mt7603_eeprom_init() 176 memcpy(dev->mphy.macaddr, eeprom + MT_EE_MAC_ADDR, ETH_ALEN); in mt7603_eeprom_init() 179 dev->mphy.antenna_mask = 3; in mt7603_eeprom_init() 183 dev->mphy.antenna_mask = 1; in mt7603_eeprom_init() 185 dev->mphy.chainmask = dev->mphy.antenna_mask; in mt7603_eeprom_init() 187 return mt76_eeprom_override(&dev->mphy); in mt7603_eeprom_init()
|
| H A D | main.c | 18 dev->mphy.survey_time = ktime_get_boottime(); in mt7603_start() 19 set_bit(MT76_STATE_RUNNING, &dev->mphy.state); in mt7603_start() 20 mt7603_mac_work(&dev->mphy.mac_work.work); in mt7603_start() 30 clear_bit(MT76_STATE_RUNNING, &dev->mphy.state); in mt7603_stop() 31 cancel_delayed_work_sync(&dev->mphy.mac_work); in mt7603_stop() 134 int mt7603_set_channel(struct mt76_phy *mphy) in mt7603_set_channel() argument 136 struct mt7603_dev *dev = container_of(mphy->dev, struct mt7603_dev, mt76); in mt7603_set_channel() 137 struct cfg80211_chan_def *def = &mphy->chandef; in mt7603_set_channel() 175 ieee80211_queue_delayed_work(mt76_hw(dev), &dev->mphy.mac_work, in mt7603_set_channel() 185 dev->mphy.survey_time = ktime_get_boottime(); in mt7603_set_channel() [all …]
|
| H A D | beacon.c | 71 mt76_tx_queue_skb(dev, dev->mphy.q_tx[MT_TXQ_BEACON], in mt7603_update_beacon_iter() 112 if (dev->mphy.offchannel) in mt7603_pre_tbtt_tasklet() 121 mt76_queue_tx_cleanup(dev, dev->mphy.q_tx[MT_TXQ_CAB], false); in mt7603_pre_tbtt_tasklet() 122 mt76_queue_tx_cleanup(dev, dev->mphy.q_tx[MT_TXQ_BEACON], false); in mt7603_pre_tbtt_tasklet() 124 if (dev->mphy.q_tx[MT_TXQ_BEACON]->queued > 0) in mt7603_pre_tbtt_tasklet() 130 q = dev->mphy.q_tx[MT_TXQ_BEACON]; in mt7603_pre_tbtt_tasklet() 142 q = dev->mphy.q_tx[MT_TXQ_CAB]; in mt7603_pre_tbtt_tasklet()
|
| H A D | dma.c | 160 mt76_queue_tx_cleanup(dev, dev->mphy.q_tx[i], false); in mt7603_poll_tx() 167 mt76_queue_tx_cleanup(dev, dev->mphy.q_tx[i], false); in mt7603_poll_tx() 193 ret = mt76_init_tx_queue(&dev->mphy, i, wmm_queue_map[i], in mt7603_dma_init() 200 ret = mt76_init_tx_queue(&dev->mphy, MT_TXQ_PSD, MT_TX_HW_QUEUE_MGMT, in mt7603_dma_init() 210 ret = mt76_init_tx_queue(&dev->mphy, MT_TXQ_BEACON, MT_TX_HW_QUEUE_BCN, in mt7603_dma_init() 215 ret = mt76_init_tx_queue(&dev->mphy, MT_TXQ_CAB, MT_TX_HW_QUEUE_BMC, in mt7603_dma_init()
|
| H A D | mac.c | 42 memset(dev->mphy.aggr_stats, 0, sizeof(dev->mphy.aggr_stats)); in mt7603_mac_reset_counters() 54 bool is_5ghz = dev->mphy.chandef.chan->band == NL80211_BAND_5GHZ; in mt7603_mac_set_timing() 489 struct mt76_queue *q = dev->mphy.q_tx[i]; in mt7603_mac_sta_poll() 507 dev->mphy.chan_state->cc_tx += total_airtime; in mt7603_mac_sta_poll() 550 sband = (i & 1) ? &dev->mphy.sband_5g.sband : &dev->mphy.sband_2g.sband; in mt7603_mac_fill_rx() 677 status->chains = dev->mphy.antenna_mask; in mt7603_mac_fill_rx() 731 int band = dev->mphy.chandef.chan->band; in mt7603_mac_tx_rate_val() 952 struct mt76_queue *q = dev->mphy.q_tx[qid]; in mt7603_mac_write_txwi() 1221 if (dev->mphy.chandef.chan->band == NL80211_BAND_5GHZ) in mt7603_fill_txs() 1222 sband = &dev->mphy.sband_5g.sband; in mt7603_fill_txs() [all …]
|
| /linux/drivers/net/wireless/mediatek/mt76/ |
| H A D | mt76x02_mac.c | 28 memset(dev->mphy.aggr_stats, 0, sizeof(dev->mphy.aggr_stats)); in mt76x02_mac_reset_counters() 204 int band = dev->mphy.chandef.chan->band; in mt76x02_mac_tx_rate_val() 348 u8 ccmp_pn[8], nstreams = dev->mphy.chainmask & 0xf; in mt76x02_mac_write_txwi() 497 dev->mphy.chandef.chan->band); in mt76x02_mac_fill_tx_status() 503 dev->mphy.chandef.chan->band); in mt76x02_mac_fill_tx_status() 507 dev->mphy.chandef.chan->band); in mt76x02_mac_fill_tx_status() 690 u8 n_rxstream = dev->mphy.chainmask & 0xf; in mt76x02_mac_process_rate() 732 ether_addr_copy(dev->mphy.macaddr, addr); in mt76x02_mac_setaddr() 734 if (!is_valid_ether_addr(dev->mphy.macaddr)) { in mt76x02_mac_setaddr() 735 eth_random_addr(dev->mphy.macaddr); in mt76x02_mac_setaddr() [all …]
|
| H A D | mt792x_usb.c | 236 clear_bit(MT76_STATE_INITIALIZED, &dev->mphy.state); in mt792xu_cleanup() 472 set_bit(MT76_RESET, &dev->mphy.state); in mt792xu_init_reset() 482 clear_bit(MT76_RESET, &dev->mphy.state); in mt792xu_init_reset() 504 set_bit(MT76_RESET, &dev->mphy.state); in mt792xu_disconnect() 505 set_bit(MT76_MCU_RESET, &dev->mphy.state); in mt792xu_disconnect() 506 clear_bit(MT76_STATE_RUNNING, &dev->mphy.state); in mt792xu_disconnect() 514 if (!test_bit(MT76_STATE_INITIALIZED, &dev->mphy.state)) { in mt792xu_disconnect() 515 set_bit(MT76_REMOVED, &dev->mphy.state); in mt792xu_disconnect() 521 set_bit(MT76_REMOVED, &dev->mphy.state); in mt792xu_disconnect()
|
| H A D | mt792x_core.c | 173 struct mt76_phy *mphy = hw->priv; in mt792x_tx() local 216 if (mt76_connac_pm_ref(mphy, &dev->pm)) { in mt792x_tx() 217 mt76_tx(mphy, control->sta, wcid, skb); in mt792x_tx() 218 mt76_connac_pm_unref(mphy, &dev->pm); in mt792x_tx() 266 mt76_connac_mcu_uni_add_dev(&dev->mphy, link_conf, &mconf->mt76, in mt792x_mac_link_bss_remove() 386 if (!mt76_connac_pm_ref(&dev->mphy, &dev->pm)) { in mt792x_tx_worker() 391 mt76_txq_schedule_all(&dev->mphy); in mt792x_tx_worker() 392 mt76_connac_pm_unref(&dev->mphy, &dev->pm); in mt792x_tx_worker() 418 !mt76_has_tx_pending(&dev->mphy), HZ / 2); in mt792x_flush() 976 struct mt76_phy *mphy = &dev->mt76.phy; in mt792x_mcu_drv_pmctrl() local [all …]
|
| /linux/drivers/net/wireless/mediatek/mt76/mt7921/ |
| H A D | main.c | 229 struct mt76_phy *mphy = phy->mt76; in __mt7921_start() local 232 err = mt76_connac_mcu_set_mac_enable(mphy->dev, 0, true, false); in __mt7921_start() 236 err = mt76_connac_mcu_set_channel_domain(mphy); in __mt7921_start() 244 err = mt7921_set_tx_sar_pwr(mphy->hw, NULL); in __mt7921_start() 249 set_bit(MT76_STATE_RUNNING, &mphy->state); in __mt7921_start() 251 ieee80211_queue_delayed_work(mphy->hw, &mphy->mac_work, in __mt7921_start() 253 if (mt76_is_mmio(mphy->dev)) { in __mt7921_start() 265 wiphy_rfkill_start_polling(mphy->hw->wiphy); in __mt7921_start() 323 ret = mt76_connac_mcu_uni_add_dev(&dev->mphy, &vif->bss_conf, in mt7921_add_interface() 477 int mt7921_set_channel(struct mt76_phy *mphy) in mt7921_set_channel() argument [all …]
|
| H A D | mac.c | 177 struct mt76_phy *mphy = &dev->mt76.phy; in mt7921_mac_fill_rx() local 198 if (!test_bit(MT76_STATE_RUNNING, &mphy->state)) in mt7921_mac_fill_rx() 227 sband = &mphy->sband_5g.sband; in mt7921_mac_fill_rx() 230 sband = &mphy->sband_6g.sband; in mt7921_mac_fill_rx() 233 sband = &mphy->sband_2g.sband; in mt7921_mac_fill_rx() 366 status->chains = mphy->antenna_mask; in mt7921_mac_fill_rx() 372 for (i = 0; i < hweight8(mphy->antenna_mask); i++) { in mt7921_mac_fill_rx() 500 mt76_queue_tx_cleanup(dev, dev->mphy.q_tx[MT_TXQ_PSD], false); in mt7921_mac_tx_free() 501 mt76_queue_tx_cleanup(dev, dev->mphy.q_tx[MT_TXQ_BE], false); in mt7921_mac_tx_free() 644 mt76_connac_mcu_uni_add_dev(&dev->mphy, &vif->bss_conf, in mt7921_vif_connect_iter() [all …]
|
| /linux/drivers/net/wireless/mediatek/mt76/mt7996/ |
| H A D | init.c | 294 struct mt76_phy *mphy; in mt7996_led_set_config() local 297 mphy = container_of(led_cdev, struct mt76_phy, leds.cdev); in mt7996_led_set_config() 298 dev = container_of(mphy->dev, struct mt7996_dev, mt76); in mt7996_led_set_config() 301 mt76_rmw_field(dev, MT_TMAC_TCR0(mphy->band_idx), MT_TMAC_TCR0_TX_BLINK, 2); in mt7996_led_set_config() 304 mt76_wr(dev, MT_LED_EN(mphy->band_idx), 1); in mt7996_led_set_config() 309 mt76_wr(dev, MT_LED_TX_BLINK(mphy->band_idx), val); in mt7996_led_set_config() 317 if (mphy->band_idx == MT_BAND1) in mt7996_led_set_config() 321 if (mphy->leds.al) in mt7996_led_set_config() 324 mt76_wr(dev, MT_LED_CTRL(mphy->band_idx), val); in mt7996_led_set_config() 325 mt76_clear(dev, MT_LED_CTRL(mphy->band_idx), MT_LED_CTRL_KICK); in mt7996_led_set_config() [all …]
|
| H A D | eeprom.c | 307 struct mt76_phy *mphy = phy->mt76; in mt7996_eeprom_parse_hw_cap() local 327 mphy->antenna_mask = BIT(nss) - 1; in mt7996_eeprom_parse_hw_cap() 328 phy->orig_antenna_mask = mphy->antenna_mask; in mt7996_eeprom_parse_hw_cap() 329 mphy->chainmask = (BIT(path) - 1) << dev->chainshift[band_idx]; in mt7996_eeprom_parse_hw_cap() 330 phy->orig_chainmask = mphy->chainmask; in mt7996_eeprom_parse_hw_cap() 331 dev->chainmask |= mphy->chainmask; in mt7996_eeprom_parse_hw_cap() 334 hweight16(mphy->chainmask); in mt7996_eeprom_parse_hw_cap() 351 memcpy(dev->mphy.macaddr, dev->mt76.eeprom.data + MT_EE_MAC_ADDR, ETH_ALEN); in mt7996_eeprom_init() 353 return mt76_eeprom_override(&dev->mphy); in mt7996_eeprom_init()
|
| H A D | mac.c | 173 struct mt76_phy *mphy = mt76_vif_link_phy(mlink); in mt7996_mac_sta_poll() local 175 if (mphy) in mt7996_mac_sta_poll() 177 mt76_rx_signal(mphy->antenna_mask, in mt7996_mac_sta_poll() 419 struct mt76_phy *mphy = &dev->mt76.phy; in mt7996_mac_fill_rx() local 451 mphy = dev->mt76.phys[band_idx]; in mt7996_mac_fill_rx() 452 if (!mphy) in mt7996_mac_fill_rx() 455 phy = mphy->priv; in mt7996_mac_fill_rx() 456 status->phy_idx = mphy->band_idx; in mt7996_mac_fill_rx() 458 if (!test_bit(MT76_STATE_RUNNING, &mphy->state)) in mt7996_mac_fill_rx() 485 status->freq = mphy->chandef.chan->center_freq; in mt7996_mac_fill_rx() [all …]
|