iw can't configure interface even when down
I am using the ath5k driver from the following compat package: compat-wireless-3.6-rc6-1.
I have been trying to change the channel and mode used by issuing commands such as:
iw dev wlan0 set channel 7
iw dev wlan0 set type adhoc
but I keep on getting the following error:
command failed: Device or resource busy (-16)
but this is even after I have set the wlan0 to be down:
ifconfig wlan0 down
I am really stymied. Any help would be greatly appreciated.