Skip to content

Commit

Permalink
wifi: mac80211: use IEEE80211_MLD_MAX_NUM_LINKS
Browse files Browse the repository at this point in the history
Remove MAX_STA_LINKS and use IEEE80211_MLD_MAX_NUM_LINKS
instead to unify between the station and other data structures.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
  • Loading branch information
jmberg-intel committed Jun 20, 2022
1 parent 246b39e commit ec7a040
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions include/net/mac80211.h
Original file line number Diff line number Diff line change
Expand Up @@ -2061,8 +2061,6 @@ struct ieee80211_sta_txpwr {
enum nl80211_tx_power_setting type;
};

#define MAX_STA_LINKS 15

/**
* struct ieee80211_link_sta - station Link specific info
* All link specific info for a STA link for a non MLD STA(single)
Expand Down Expand Up @@ -2190,7 +2188,7 @@ struct ieee80211_sta {

bool multi_link_sta;
struct ieee80211_link_sta deflink;
struct ieee80211_link_sta *link[MAX_STA_LINKS];
struct ieee80211_link_sta *link[IEEE80211_MLD_MAX_NUM_LINKS];

/* must be last */
u8 drv_priv[] __aligned(sizeof(void *));
Expand Down
2 changes: 1 addition & 1 deletion net/mac80211/sta_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@ struct sta_info {

bool multi_link_sta;
struct link_sta_info deflink;
struct link_sta_info *link[MAX_STA_LINKS];
struct link_sta_info *link[IEEE80211_MLD_MAX_NUM_LINKS];

/* keep last! */
struct ieee80211_sta sta;
Expand Down

0 comments on commit ec7a040

Please sign in to comment.