rtw_get_wps_attr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’« rtw_get_wps_attr β€” a kernel API manual, but make it make sense πŸ’«

okay so bestie, welcome to the rtw_get_wps_attr(9) page πŸ’… this is a Kernel API Manual entry and it's genuinely not that deep β€” it's a little search function that goes digging through a WPS IE for one specific attribute. let's get into it πŸŽ€


🌸 NAME 🌸

rtw_get_wps_attr β€” search a specific WPS attribute from a given WPS IE ✨

like, you hand it a WPS IE, you tell it which attribute ID you're hunting for, and it goes and finds it. icon behaviour honestly 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

u8 * rtw_get_wps_attr (u8 *wps_ie , uint wps_ielen , u16 target_attr_id
, u8 *buf_attr , u32 *len_attr );

five arguments, one pointer returned, no cap πŸ”₯


πŸ’– ARGUMENTS πŸ’–

okay so here's who's who in this function call:

  • wps_ie β€” the address of the WPS IE you want it to search 🌈 this is the thing it's gonna dig through.
  • wps_ielen β€” the length limit starting from wps_ie πŸ’« basically "don't look past here bestie".
  • target_attr_id β€” the attribute ID of the WPS attribute you're searching for πŸ‘‘ this is your target, your main character, the one you're looking for.
  • buf_attr β€” if this is not NULL and the WPS attribute is found, the WPS attribute gets copied into the buf starting from buf_attr πŸŽ€ so it's your little delivery box. but only if it's not NULL, and only if the attribute is actually found. two conditions, both required, no exceptions ✨
  • len_attr β€” if this is not NULL and the WPS attribute is found, it gets set to the length of the entire WPS attribute πŸ“ note the word entire β€” that's the whole attribute, not just the content. also same two conditions as above πŸ’…

⭐ RETURN ⭐

it returns the address of the specific WPS attribute that was found πŸ’– or NULL 😭 if it wasn't. that's it. that's the whole return value. short and iconic.


🧚 SEE ALSO 🧚

go look at the kernel file ./drivers/staging/rtl8723bs/core/rtw_ieee80211.c if you want the real tea πŸ“

and these sibling functions, all besties in the same family:

iykyk πŸ’œ


lowkey reminder: buf_attr and len_attr only get touched when they're not NULL and the attribute is found. don't @ me, that's just what the page says πŸ™ˆ

okay that's the whole page!! this one came out of ./drivers/staging/rtl8723bs/core, dated October 2026, in the old rtw_get_wps_attr(9) era πŸ’€ and the manual name up top was, you guessed it, rtw_get_wps_attr(9). slay, go find your attributes bestie πŸŒΈβœ¨πŸŽ€

πŸ“¦ where this page comes from