Just to be clear, how can I make sure I'm disabling and restarting the right interface, because mine is not wlan0?
ip link show
displays all your interfaces. You will have one called
lo which is only an internal interface, used for IPC (=Inter Process Commnication). Among the remaining ones you can identify the wifi interface by means of
eth0 no wireless extensions.
wlan0 IEEE 802.11abgn ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=15 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
wwan0 no wireless extensions.
lo no wireless extensions.
which shows clearly that, on my pc,
wlan0 is the only wifi interface.
If you have more than one remaining interface, like in my case, you can identify the ethernet NIC by means of
sudo ethtool eth0
sudo ethtool wwan0
: the ethernet interface will produce a long output, the other one will be very short. In my case, I have a wwan0 interface which is used to connect to telephone data networks, Edge/3G/4G.