Skip to content

Instantly share code, notes, and snippets.

@X4
Created January 15, 2013 22:04
Show Gist options
  • Select an option

  • Save X4/4542556 to your computer and use it in GitHub Desktop.

Select an option

Save X4/4542556 to your computer and use it in GitHub Desktop.
Fixes problems with the iwlwifi driver stalling on Kernels 3.6+ Error: iwlwifi 0000:04:00.0: fail to flush all tx fifo queues
#!/bin/bash
ifconfig wlan0 down && sleep 1
ifconfig wlan0 up && sleep 1
echo "Reset WiFi"
rmmod iwldvm && sleep 1
rmmod iwlwifi && sleep 1
echo "Remove Intel kernel modules"
modprobe iwlwifi auto_agg=0 wd_disable=1 bt_coex_active=0 && sleep 1
modprobe iwldvm && sleep 1
echo "Reconfigure Intel kernel modules"
ifconfig wlan0 up && sleep 1
iwlist wlan0 scan >/dev/null && sleep 1
echo "Initialize WiFi-Card"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment