Skip to contentSkip to conversation

RFC on per-link stats reporting.

DISCUSSION Ben Greear 2 participants 2 messages Dec 13, 2024

lore
Share & tools
lore

Ben Greear

author
#0 lore raw

Hello,

While trying to better understand how MLO was working, I started on some code to gather stats from the driver so that mac80211 has visibility into it.

In particular, I added a small struct to hold per-link stats for up to 3 links to the station_info struct. Then in the driver, I gather the available info when mac80211 asks for the station info.

#define IEEE80211_MAX_STA_INFO_LINK 3
/**
* struct station_info_link -- Link info
*
* Same definitions as in station_info, but for links. */

struct station_info_link {
	u64 filled;
	s8 rx_beacon_signal_avg;
	struct rate_info txrate;
};

struct station_info {
....

	struct station_info_link link_info[IEEE80211_MAX_STA_INFO_LINK];
}

Is there any interest in this approach for the upstream kernel?

Thanks,
Ben

Signature · 2 lines
Ben Greear <[email protected]>
Candela Technologies Inc  http://www.candelatech.com
#1 lore raw
Quoted 26 lines · Ben Greear

Hello,

While trying to better understand how MLO was working, I started on some code to gather stats from the driver so that mac80211 has visibility into it.

In particular, I added a small struct to hold per-link stats for up to 3 links to the station_info struct. Then in the driver, I gather the available info when mac80211 asks for the station info.

#define IEEE80211_MAX_STA_INFO_LINK 3
/**
* struct station_info_link -- Link info
*
* Same definitions as in station_info, but for links. */

struct station_info_link {
	u64 filled;
	s8 rx_beacon_signal_avg;
	struct rate_info txrate;
};

struct station_info {
....

Quoted 8 lines
	struct station_info_link link_info[IEEE80211_MAX_STA_INFO_LINK];
}

Is there any interest in this approach for the upstream kernel?

Thanks,
Ben

There is definitely interest since Qualcomm is also working on an RFC for this functionality. You can wait for our proposal, or publish your own.

In addition, Qualcomm is working on an RFC for supporting per-radio attributes via get/set wiphy for drivers that support multi-radio wiphys.

We hope to have these RFCs out next week...

/jeff