If you are using madwifi drivers, to destroy an interface:
To create the interface:Code:wlanconfig athX destroy (where X is the interface number)
or, you can use modprobe to remove/reinstall the modulesCode:wlanconfig ath create wlandev wifi0 wlanmode sta
Code:modprobe -r ath_pci && modprobe ath_pci



