iwl_parse_nvm_mcc_info(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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