I was having some iwl wifi microcode errors for 05:00.0 Network controller: Intel Corporation Centrino Advanced-N 6235 (rev 24)

which was making my system unresponsive to the point that it messed with login.d and prevented my system from shutting down.

after a few days of this I resorted to removing the modules but when I ran this after stopping networkmanager sudo modprobe -r iwldvm iwlwifi this happened and when I did sudo lsmod | grep iwlwifi

this was the output

iwlwifi 585728 -1 
cfg80211 1495040 1 iwlwifi

I have since successfully blacklisted that module but any insight will be helpful as I am without wifi for the moment