[PATCH mt76 11/12] wifi: mt76: mt7996: fix using wrong phy to start in mt7996_mac_restart()

Lorenzo Bianconi lorenzo at kernel.org
Wed Nov 5 02:45:35 PST 2025


> Pass the correct mt7996_phy to mt7996_run().
> 
> Fixes: 0a5df0ec47f7 ("wifi: mt76: mt7996: remove redundant per-phy mac80211 calls during restart")
> Signed-off-by: Shayne Chen <shayne.chen at mediatek.com>

Acked-by: Lorenzo Bianconi <lorenzo at kernel.org>

> ---
>  drivers/net/wireless/mediatek/mt76/mt7996/mac.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/net/wireless/mediatek/mt76/mt7996/mac.c b/drivers/net/wireless/mediatek/mt76/mt7996/mac.c
> index c1f2938d1f21..2c869f710193 100644
> --- a/drivers/net/wireless/mediatek/mt76/mt7996/mac.c
> +++ b/drivers/net/wireless/mediatek/mt76/mt7996/mac.c
> @@ -2368,7 +2368,7 @@ mt7996_mac_restart(struct mt7996_dev *dev)
>  		if (!test_bit(MT76_STATE_RUNNING, &phy->mt76->state))
>  			continue;
>  
> -		ret = mt7996_run(&dev->phy);
> +		ret = mt7996_run(phy);
>  		if (ret)
>  			goto out;
>  	}
> -- 
> 2.51.0
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-mediatek/attachments/20251105/b067a356/attachment.sig>


More information about the Linux-mediatek mailing list