cfg80211_wext_freq(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 a struct 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