ieee80211_get_vht_max_nss(9)
π ieee80211_get_vht_max_nss π
okay so bestie, this is a page from the Kernel API Manual β yes, the kernel, we're being serious and iconic today β and it's all about ieee80211_get_vht_max_nss. Bookmark it, screenshot it, send it to the group chat. π«Ά
β¨ NAME β¨
ieee80211_get_vht_max_nss β returns the max NSS for a given bandwidth/MCS. literally what it says on the tin, no plot twist π
πΈ SYNOPSIS πΈ
int ieee80211_get_vht_max_nss (struct ieee80211_vht_cap *cap , enum
ieee80211_vht_chanwidth bw , int mcs , bool ext_nss_bw_capable ,
unsigned int max_vht_nss );
she takes five arguments and gives you back an int, main character energy fr β¨
π ARGUMENTS π
capβ the VHT capabilities of the peer. like, their whole rΓ©sumΓ©. πbwβ the bandwidth to use. pick your width, babe.mcsβ the MCS index to use. the vibes index, if you will.ext_nss_bw_capableβ this one's abool, and it indicates whether or not the local transmitter (rate scaling algorithm) can deal with the new logic β that'sdot11VHTExtendedNSSBWCapableif you're keeping track at home. basically: are we built for this or not πmax_vht_nssβ the current maximum NSS as advertised by the STA in operating mode notification. and here's the cute part: it can be0, in which case the capability data will be used to derive this (from MCS support). zero means "figure it out bestie" π«Ά
β RETURN β
The maximum NSS that can be used for the given bandwidth/MCS combination. that's it, that's the answer, periodt π β¨
π¦ DESCRIPTION π¦
okay so here's the lore π due to the VHT Extended NSS Bandwidth Support, the maximum NSS can vary for a given BW/MCS β she's not a fixed number, she's dynamic. This function parses the data. that's the whole job. no cap.
π₯ NOTE π₯
big one: this function is exported by cfg80211. π
π SEE ALSO π
- Kernel file
./include/linux/ieee80211-vht.henum ieee80211_vht_opmode_bits(9)struct ieee80211_vht_mcs_info(9)enum ieee80211_vht_mcs_support(9)struct ieee80211_vht_cap(9)enum ieee80211_vht_chanwidth(9)struct ieee80211_vht_operation(9)
go read all of them, i'll wait π (iykyk)
ngl if you're poking at VHT stuff, the whole squad above is required reading. no skipping π«Ά
and that's the page, bestie!! πΈ signed off from ./include/linux, dated October 2026, brought to you by the Kernel API Manual β slay, mwah ππ
β¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms