mesh_set_ht_prot_mode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ mesh_set_ht_prot_mode(9) ✨

okay so bestie, we're in the Kernel API Manual today and this one is a whole little bop about HT protection modes in mesh networks πŸ’… no cap, it's short but it matters.


🌸 NAME 🌸

mesh_set_ht_prot_mode β€” set correct HT protection mode πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

u64 mesh_set_ht_prot_mode (struct ieee80211_sub_if_data *sdata );

πŸ’– ARGUMENTS πŸ’–

  • sdata β€” the (mesh) interface to handle. like, the thing you're doing the handling on, yk? 🫢

πŸ”₯ DESCRIPTION πŸ”₯

okay so the lore: Section 9.23.3.5 of IEEE 80211-2012 is out here describing the protection rules for an HT mesh STA in a MBSS πŸ“œ and our girl is the one who actually applies them.

Three HT protection modes are supported for now πŸ‘‘, and here's the vibe check on each:

  • non-HT mixed mode β€” gets selected if any non-HT peers are present in our MBSS. like, one normie shows up and the whole party goes mixed mode, that's just how it is 😭
  • 20MHz-protection mode β€” gets selected if all peers in our 20/40MHz MBSS support HT and at least one HT20 peer is present. both conditions, no skipping 🎯
  • no-protection mode β€” the else clause, the fallback era, selected otherwise. living free, no protection, main character energy ⭐

🌈 RETURN 🌈

BSS_CHANGED_HT or 0 for no change πŸ’€ (yes, 0 literally means "no change", she said what she said)


🧚 SEE ALSO 🧚

Kernel file ./net/mac80211/mesh_plink.c β€” plus the whole friend group:


and that's the page, bestie 🫢 it lives over in ./net/mac80211 and it was stamped October 2026 β€” go forth and protect those HT modes, ily, mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from