Felix Fietkau
ddbe1f6eb2
wifi: mt76: abort scan/roc on hw restart
...
Avoid spurious channel changes and clean up allocated links
Signed-off-by: Felix Fietkau <[email protected] >
2025-09-12 13:51:36 +02:00
Felix Fietkau
d70f62b8f1
wifi: mt76: fix vif link allocation
...
Reuse the vif deflink for link_id = 0 in order to avoid confusion with
vif->bss_conf, which also gets a link id of 0.
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected] >
2025-07-07 18:03:48 +02:00
Feng Jiang and Felix Fietkau
b70a4a6195
wifi: mt76: scan: Fix 'mlink' dereferenced before IS_ERR_OR_NULL check
...
Reported-by: kernel test robot <[email protected] >
Reported-by: Dan Carpenter <[email protected] >
Closes: https://lore.kernel.org/r/[email protected] /
Fixes: 3ba20af886d1 ("wifi: mt76: scan: set vif offchannel link for scanning/roc")
Signed-off-by: Feng Jiang <[email protected] >
Link: https://patch.msgid.link/[email protected]
2025-05-21 14:30:01 +02:00
Felix Fietkau
2c068c9638
wifi: mt76: fix crash in mt76_switch_vif_chanctx
...
If the mode is CHANCTX_SWMODE_SWAP_CONTEXTS, the new chanctx is not
initialized yet.
Signed-off-by: Felix Fietkau <[email protected] >
2025-01-14 13:31:15 +01:00
Felix Fietkau
4d8d6e2e77
wifi: mt76: scan: set vif offchannel link for scanning/roc
...
The driver needs to know what vif link to use
Signed-off-by: Felix Fietkau <[email protected] >
2025-01-04 08:11:30 +01:00
Felix Fietkau
f19cbcf834
wifi: mt76: add multi-radio remain_on_channel functions
...
This allows a driver using the generic channel context functions to
temporarily switch to another channel for off-channel rx/tx.
Signed-off-by: Felix Fietkau <[email protected] >
2024-10-27 08:52:59 +01:00
Felix Fietkau
fc0ff17b53
wifi: mt76: add multi-radio support to scanning code
...
When scanning on a phy/vif combination that does not have an active link,
create a temporary link in order to ensure that we have a valid wcid.
Signed-off-by: Felix Fietkau <[email protected] >
2024-10-27 08:52:59 +01:00
Felix Fietkau
d026be405c
wifi: mt76: add chanctx functions for multi-channel phy support
...
This adds an implementation for the chanctx functions, which can be used
by multi-channel capable drivers. Preparation for adding MLO support.
Signed-off-by: Felix Fietkau <[email protected] >
2024-10-22 10:18:59 +02:00