main.c (01cfc1b45421cbc1e80511a78f1ea6d261de1075) main.c (8b8ab5c2353404b87b4ecde37dbaea2f040aec1b)
1// SPDX-License-Identifier: ISC
2/* Copyright (C) 2019 MediaTek Inc.
3 *
4 * Author: Roy Luo <royluo@google.com>
5 * Ryder Lee <ryder.lee@mediatek.com>
6 * Felix Fietkau <nbd@nbd.name>
7 */
8

--- 476 unchanged lines hidden (view full) ---

485 mt7615_mcu_set_tx_ba(dev, params, 0);
486 ieee80211_stop_tx_ba_cb_irqsafe(vif, sta->addr, tid);
487 break;
488 }
489
490 return 0;
491}
492
1// SPDX-License-Identifier: ISC
2/* Copyright (C) 2019 MediaTek Inc.
3 *
4 * Author: Roy Luo <royluo@google.com>
5 * Ryder Lee <ryder.lee@mediatek.com>
6 * Felix Fietkau <nbd@nbd.name>
7 */
8

--- 476 unchanged lines hidden (view full) ---

485 mt7615_mcu_set_tx_ba(dev, params, 0);
486 ieee80211_stop_tx_ba_cb_irqsafe(vif, sta->addr, tid);
487 break;
488 }
489
490 return 0;
491}
492
493static void
494mt7615_sw_scan(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
495 const u8 *mac)
496{
497 struct mt7615_dev *dev = hw->priv;
498
499 set_bit(MT76_SCANNING, &dev->mt76.state);
500}
501
502static void
503mt7615_sw_scan_complete(struct ieee80211_hw *hw, struct ieee80211_vif *vif)
504{
505 struct mt7615_dev *dev = hw->priv;
506
507 clear_bit(MT76_SCANNING, &dev->mt76.state);
508}
509
510const struct ieee80211_ops mt7615_ops = {
511 .tx = mt7615_tx,
512 .start = mt7615_start,
513 .stop = mt7615_stop,
514 .add_interface = mt7615_add_interface,
515 .remove_interface = mt7615_remove_interface,
516 .config = mt7615_config,
517 .conf_tx = mt7615_conf_tx,
518 .configure_filter = mt7615_configure_filter,
519 .bss_info_changed = mt7615_bss_info_changed,
520 .sta_state = mt76_sta_state,
521 .set_key = mt7615_set_key,
522 .ampdu_action = mt7615_ampdu_action,
523 .set_rts_threshold = mt7615_set_rts_threshold,
524 .wake_tx_queue = mt76_wake_tx_queue,
525 .sta_rate_tbl_update = mt7615_sta_rate_tbl_update,
493const struct ieee80211_ops mt7615_ops = {
494 .tx = mt7615_tx,
495 .start = mt7615_start,
496 .stop = mt7615_stop,
497 .add_interface = mt7615_add_interface,
498 .remove_interface = mt7615_remove_interface,
499 .config = mt7615_config,
500 .conf_tx = mt7615_conf_tx,
501 .configure_filter = mt7615_configure_filter,
502 .bss_info_changed = mt7615_bss_info_changed,
503 .sta_state = mt76_sta_state,
504 .set_key = mt7615_set_key,
505 .ampdu_action = mt7615_ampdu_action,
506 .set_rts_threshold = mt7615_set_rts_threshold,
507 .wake_tx_queue = mt76_wake_tx_queue,
508 .sta_rate_tbl_update = mt7615_sta_rate_tbl_update,
526 .sw_scan_start = mt7615_sw_scan,
527 .sw_scan_complete = mt7615_sw_scan_complete,
509 .sw_scan_start = mt76_sw_scan,
510 .sw_scan_complete = mt76_sw_scan_complete,
528 .release_buffered_frames = mt76_release_buffered_frames,
529 .get_txpower = mt76_get_txpower,
530 .channel_switch_beacon = mt7615_channel_switch_beacon,
531 .get_survey = mt76_get_survey,
532};
511 .release_buffered_frames = mt76_release_buffered_frames,
512 .get_txpower = mt76_get_txpower,
513 .channel_switch_beacon = mt7615_channel_switch_beacon,
514 .get_survey = mt76_get_survey,
515};