iwl_parse_nvm_mcc_info(9)
β¨ iwl_parse_nvm_mcc_info(9) β¨
okay bestie, so this is a page straight out of the Kernel API Manual and we're about to get very into it β it's iwl_parse_nvm_mcc_info, and it does exactly what it says on the tin π
πΈ NAME πΈ
iwl_parse_nvm_mcc_info β parse MCC (mobile country code) info coming from FW π°οΈ
π SYNOPSIS π
struct ieee80211_regdomain * iwl_parse_nvm_mcc_info (struct iwl_trans
*trans , int num_of_ch , __le32 *channels , u16 fw_mcc , u16 geo_info ,
u32 cap , u8 resp_ver , enum iwl_puncturing_status *puncturing_status );
like, look at that signature. she's long. she's iconic. she returns a struct ieee80211_regdomain * and she takes eight whole arguments π periodt.
π¦ ARGUMENTS π¦
transβ the transport πnum_of_chβ the number of channels π’channelsβ channel map πΊοΈfw_mccβ firmware country code πgeo_infoβ geo info value πcapβ capability πͺresp_verβ FW response version π·οΈpuncturing_statusβ FW puncturing status for current MCC, when available π³οΈ
π DESCRIPTION π
so what does she actually do? This function parses the regulatory channel data received as a MCC_UPDATE_CMD command. that's the whole vibe. no cap. π§
π₯ RETURN π₯
she hands you back a newly allocation regulatory domain, to be given to the regulatory core π. In case the geo_info is set handle accordingly β οΈ. An ERR_PTR is returned on error π. If not given to the regulatory core, the user is responsible for freeing the regdomain returned here with kfree β yes, you. it's giving main character energy and main character responsibility fr fr π
bestie pls don't leak memory, kfree is right there π«Ά
π SEE ALSO π
- Kernel file
./drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.h enum iwl_nvm_sbands_flags(9)enum iwl_puncturing_status(9)struct iwl_reg_capa(9)enum iwl_nvm_channel_flags(9)struct iwl_nvm_section(9)iwl_read_external_nvm(9)
go read them. slay. πβ¨
aaaand that's the page!! π sign-off time: this lil beauty lives at ./drivers/net/wireless/intel/i... and it's dated October 2026 β so mark your calendars, screenshot it, send it to the group chat, whatever you gotta do π 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