wifi: mt76: mt792x: add struct mt792x_link_sta

We are introducing a new structure, mt792x_link_sta, to manage per-link
configurations in preparation for future station (STA) support of
Multi-Link Operation (MLO).

This patch only includes structural changes and does not involve any
logic changes.

We have moved relevant parameters, such as the wcid from the mt76_wcid
structure, from the mt7921x_sta structure to the mt792x_link_sta structure.

For current drivers that do not support MLO, there is only one link STA,
and link information is accessed via the deflink member.

However, we have not yet created the per-link BSS configuration indexed
by link ID for Multi-Link Device (MLD) support in mt7921x_sta.
This step needs to be completed before adding MLD support for STA mode.

Co-developed-by: Sean Wang <[email protected]>
Signed-off-by: Sean Wang <[email protected]>
Signed-off-by: Deren Wu <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
Deren Wu
2024-07-13 15:39:30 +02:00
committed by Felix Fietkau
parent 58d187e4a9
commit eb278f9863
11 changed files with 180 additions and 166 deletions
+7 -3
View File
@@ -81,11 +81,9 @@ enum mt792x_reg_power_type {
DECLARE_EWMA(avg_signal, 10, 8)
struct mt792x_sta {
struct mt792x_link_sta {
struct mt76_wcid wcid; /* must be first */
struct mt792x_vif *vif;
u32 airtime_ac[8];
int ack_signal;
@@ -96,6 +94,12 @@ struct mt792x_sta {
struct mt76_connac_sta_key_conf bip;
};
struct mt792x_sta {
struct mt792x_link_sta deflink; /* must be first */
struct mt792x_vif *vif;
};
DECLARE_EWMA(rssi, 10, 8);
struct mt792x_bss_conf {