Skip to content

Commit c56d6ed

Browse files
committed
wifi: mt76: mt7996: use emulated hardware scan support
Preparation for supporting multiple radios on a single wiphy Link: https://patch.msgid.link/[email protected] Signed-off-by: Felix Fietkau <[email protected]>
1 parent a8f424c commit c56d6ed

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

drivers/net/wireless/mediatek/mt76/mt7996/init.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,9 @@ mt7996_init_wiphy(struct ieee80211_hw *hw, struct mtk_wed_device *wed)
439439

440440
wiphy->available_antennas_rx = phy->mt76->antenna_mask;
441441
wiphy->available_antennas_tx = phy->mt76->antenna_mask;
442+
443+
wiphy->max_scan_ssids = 4;
444+
wiphy->max_scan_ie_len = IEEE80211_MAX_DATA_LEN;
442445
}
443446

444447
static void

drivers/net/wireless/mediatek/mt76/mt7996/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1522,8 +1522,8 @@ const struct ieee80211_ops mt7996_ops = {
15221522
.ampdu_action = mt7996_ampdu_action,
15231523
.set_rts_threshold = mt7996_set_rts_threshold,
15241524
.wake_tx_queue = mt76_wake_tx_queue,
1525-
.sw_scan_start = mt76_sw_scan,
1526-
.sw_scan_complete = mt76_sw_scan_complete,
1525+
.hw_scan = mt76_hw_scan,
1526+
.cancel_hw_scan = mt76_cancel_hw_scan,
15271527
.release_buffered_frames = mt76_release_buffered_frames,
15281528
.get_txpower = mt76_get_txpower,
15291529
.channel_switch_beacon = mt7996_channel_switch_beacon,

0 commit comments

Comments
 (0)