cfg80211_wext_freq(9)
π cfg80211_wext_freq β like, the whole vibe π
okay so bestie, this one's a lil kernel function from the Kernel API Manual (yes that's the manual name, we're fancy now β¨), and honestly? she's short but she delivers. Let's get into it π
πΈ NAME πΈ
cfg80211_wext_freq β get wext frequency for non-"auto" π¦
Like, the whole point: you hand her a wext frequency thingy and she tells you the actual frequency. But β and this is the iconique part β only for the non-"auto" case. If it's "auto", girl has a whole other answer for you (spoiler: it's 0, scroll down π
).
β¨ SYNOPSIS β¨
int cfg80211_wext_freq (struct iw_freq *freq );
That's it. One function, one argument, no cap. Copy it exactly, spaces and all, because kernel code does not do ~vibes~ with your formatting π
π«Ά ARGUMENTS π«Ά
freqβ the wext freq encoding. That's the input, bestie. It's astruct iw_freq *, and it's carrying the encoded frequency info. She reads it, she decodes the situation, she reports back. Main character energy honestly π
π₯ RETURN π₯
So what comes back? One of three moods, depending on the day:
- a frequency β the happy path, she found you a real number π
- a negative error code β something went sideways, and the negative value is her telling you how sideways π
0β for auto. That's the"auto"case from NAME, coming back around to say hi β
Heads up: 0 is a real, meaningful return here β it means "auto", not "everything's fine, here's a zero frequency." Don't get it twisted π
π SEE ALSO π
Kernel file ./net/wireless/wext-compat.c β that's where she lives, go say hi π§
and that's the page, bestie π fr fr you read the whole thing, proud of you π this was the Kernel API Manual, from ./net/wireless, dated October 2026 β mwah, slay, periodt π
β¨
π¦ 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