Thread (15 messages) 15 messages, 6 authors, 2018-06-29

Re: [PATCH 4/4] mac80211: Implement functionality to monitor txrate cross event for a station

From: Johannes Berg <johannes@sipsolutions.net>
Date: 2018-06-29 09:48:00

+static void ieee80211_sta_mon_txrate_thold_check(struct sta_info *sta)
+{
+	struct rate_info rinfo;
+	enum nl80211_sta_mon_txrate_threshold_event sta_txrate_event;
+	int txrate;
+
+	if (!sta->txrate_high)
+		return;
+
+	sta_set_rate_info_tx(sta, &sta->tx_stats.last_rate, &rinfo);
+	txrate = cfg80211_calculate_bitrate(&rinfo);
These are quite expensive calculations, I think this is far too much to
do on every packet.

You need to find a way to do most of the calculations at configure time,
e.g. build a table of MCS configurations this station might use, and
mark bits in there that fall above/below the threshold, or something
like that?

johannes
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help