# Disabling background scanning iwpriv ath0 bgscan 0 # Disable 802.1g Protection Mode iwpriv ath0 protmode 0 # Set the RSSI threshold for 802.11a/b/g mode to 11 iwpriv ath0 rssi11a 11 iwpriv ath0 rssi11b 11 iwpriv ath0 rssi11g 11 # Disable antenna diversity (prevent MadWifi from throwing a kernel panic, see bug #1998) and fix weak signal strength problem sysctl -w dev.wifi0.diversity=0 sysctl -w dev.wifi0.txantenna=1 sysctl -w dev.wifi0.rxantenna=1