[PATCH 3/3] mt76: mt7615: support 16 interfaces

Felix Fietkau nbd at nbd.name
Fri Nov 13 04:14:43 EST 2020


On 2020-10-29 18:11, Ryder Lee wrote:
> When looking for a MAC address slot, start by using main BSSID slots 1-3,
> afterwards use 16 repeater mode BSSID slots, then start using the slots
> usually used for AP mode.
> 
> This search order should prevent unnecessary conflicts with AP mode interfaces
> on the same PHY.
> 
> Note that two PHYs share global 32 omac slots with each other.
> 
> Signed-off-by: Ryder Lee <ryder.lee at mediatek.com>
> ---
>  .../net/wireless/mediatek/mt76/mt7615/init.c  |  4 +-
>  .../net/wireless/mediatek/mt76/mt7615/main.c  | 55 +++++++++++++------
>  .../net/wireless/mediatek/mt76/mt7615/mcu.c   | 49 ++++++++++++++++-
>  .../net/wireless/mediatek/mt76/mt7615/mcu.h   |  1 +
>  .../wireless/mediatek/mt76/mt7615/mt7615.h    | 25 +++------
>  5 files changed, 94 insertions(+), 40 deletions(-)
> 
> diff --git a/drivers/net/wireless/mediatek/mt76/mt7615/mt7615.h b/drivers/net/wireless/mediatek/mt76/mt7615/mt7615.h
> index f72506d9f646..496c46f1073e 100644
> --- a/drivers/net/wireless/mediatek/mt76/mt7615/mt7615.h
> +++ b/drivers/net/wireless/mediatek/mt76/mt7615/mt7615.h
> @@ -176,7 +176,7 @@ struct mt7615_phy {
>  	struct ieee80211_vif *monitor_vif;
>  
>  	u32 rxfilter;
> -	u32 omac_mask;
> +	u64 omac_mask;
>  
>  	u16 noise;
>  
This also needs to be done in struct mt7615_dev. I've fixed it up locally.

- Felix



More information about the Linux-mediatek mailing list