ieee80211_get_vht_max_nss(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 a bool, and it indicates whether or not the local transmitter (rate scaling algorithm) can deal with the new logic β€” that's dot11VHTExtendedNSSBWCapable if 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 be 0, 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.h enum
  • 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