iw dev wlan0 disconnect

Category: Local Network & Public Hosting

iw dev wlan0 disconnect

Drop the current Wi-Fi association

This forcibly disconnects wlan0 from whatever access point it is joined to, which is handy before switching supplicants or reconfiguring the radio. The card stays up and unassociated, ready for a new connect command. NetworkManager may immediately rejoin a known network, so stop it first if that interferes.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.