stop loading if_iwlwifi

On 15.1-RELEASE I put in /boot/loader.conf if_iwlwifi_load="NO" and after reboot kldstat show me still.
With devmatch_blocklist="if_iwlwifi" it works.
Why the first option doesn't works, please?

Thank you.
 
if_iwlwifi_load="NO" would not load the module when the kernel starts at boot. devmatch_blocklist="if_iwlwifi" prevents it from being automatically loaded after the kernel started.

/boot/loader.conf has settings that are done before the kernel starts, like loading additional kernel modules or setting special kernel parameters.
 
SirDice and bakul, similar to the OP question, if I wanted not to load a wireless interface driver (e.g. iwlwifi0 and rtw890) at all, because I would never use them, what would be the best way and place to do this, devmatch? Imma have to read on what it does, I am not familiar with it. Similar to the OP, I thought this had to be done in the loader.conf file.

Thank you all!
 
Back
Top