Ping-Ke Shih <pkshih@xxxxxxxxxxx> wrote: > A mac_id as an instance in firmware has to be assigned for each station > including AP and connected stations. Firmware will use the mac_id to > control TX rate and do statistics. > > Assignment rule is to assign mac_id to each vif when adding vif. > For station mode, sta->mac_id will reuse vif->mac_id. For AP mode, > dynamically allocate an sta->mac_id to a station, and vif->mac_id is > used to send broadcast/multicast packets which are not belong to > a station. For example, > > vif->mac_id sta->mac_id > vif0 (STA mode) 0 0 > vif1 (AP mode) 1 2... > > By the way, remove unused RTW_BC_MC_MACID, which was planed to send > broadcast/multicast packets on fixed mac_id. > > Tested-on RTL8822CE with STA + AP SCC mode. > > Link: https://lore.kernel.org/linux-wireless/e4be0a75-43b2-4ae5-9aab-5c4a88e78097@xxxxxxxxx/ > Cc: Bitterblue Smith <rtl8821cerfe2@xxxxxxxxx> > Signed-off-by: Ping-Ke Shih <pkshih@xxxxxxxxxxx> 1 patch(es) applied to rtw-next branch of rtw.git, thanks. 902cb7b11f9a wifi: rtw88: assign mac_id for vif/sta and update to TX desc --- https://github.com/pkshih/rtw.git