ieee80211_uhr_dbe_bw_mhz(9)
π ieee80211_uhr_dbe_bw_mhz (section 9, kernel API manual, bestie)
okay so like, hi, welcome to the group chat π today we're looking at ieee80211_uhr_dbe_bw_mhz from the kernel API manual β yes it's a section 9 page, yes it's a whole vibe, and yes I'm gonna explain it to you like you're my bestie who just got her first kernel tree. no gatekeeping here π«Ά
β¨ NAME β¨
ieee80211_uhr_dbe_bw_mhz β okay so this function is literally the "what bandwidth am I working with, in MHz?" girlie π
you hand her a UHR DBE bandwidth and she hands you back the actual number in megahertz. it's giving translator icon, periodt.
πΈ SYNOPSIS πΈ
int ieee80211_uhr_dbe_bw_mhz (enum ieee80211_uhr_dbe_oper_bw bw );
so she returns an int, and she takes exactly one thing: an enum ieee80211_uhr_dbe_oper_bw named bw. that's it. that's the whole function signature. no cap. β¨
π ARGUMENTS π
bwβ the UHR DBE bandwidth π¦ like, this is the value you're asking about. you give her the bandwidth, she tells you what it is in MHz. simple as that, iykyk.
π RETURN π
she returns the bandwidth in MHz π β and if the value is invalid? she returns -1. that's the "bestie this is not a real thing" signal π© so like, check for that, fr fr. don't be out here treating a -1 like a real bandwidth unless you want chaos π
heads up bestie:-1is what you get for invalid values. that's the entire failure mode listed here, so if you see-1, the value you handed her wasn't valid. periodt.
π¦ SEE ALSO π¦
literally the whole friend group, go say hi π
- Kernel file
./include/linux/ieee80211-uhr.hβ structieee80211_uhr_npca_info(9) struct ieee80211_uhr_dps_info(9)enum ieee80211_uhr_dbe_oper_bw(9)struct ieee80211_uhr_dbe_info(9)struct ieee80211_uhr_p_edca_info(9)enum ieee80211_uhr_dbe_max_supported_bw(9)ieee80211_uhr_capa_get_om_pu_to_us(9)
like, if this page was your main character, those are the supporting cast π and honestly the enum ieee80211_uhr_dbe_oper_bw(9) one is right there since that's literally the type of our argument. obsessed. π₯
β the cute sign-off β
this lil page lives over in ./include/linux π and it's dated October 2026 β yes, future girlie energy πΈ the manual page is ieee80211_uhr_dbe_bw_mhz(9) and that's the whole thing, slay, bye bestie ππ¦β¨
π¦ 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