spwx
Posts: 7
Joined: Sat Jan 11, 2014 11:33 pm

What is to correct way to disconnect WiFi?

Sat Jan 11, 2014 11:37 pm

Should i use:

ifdown wlan0

or

wpa_cli disconnect

Thank you!

User avatar
DougieLawson
Posts: 39304
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: What is to correct way to disconnect WiFi?

Sun Jan 12, 2014 12:52 am

Yes.

I use ifdown on the very rare occasions.

Normally I'll run that as an at job.
at 01:00
ifdown --force wlan0
ifup wlan0
ctrl+D

That way I can do it via ssh and not lose connectivity.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

spwx
Posts: 7
Joined: Sat Jan 11, 2014 11:33 pm

Re: What is to correct way to disconnect WiFi?

Sun Jan 12, 2014 1:05 am

Thanks for the reply.

Just to clarify, you are saying to use ifdown wlan0?

User avatar
DougieLawson
Posts: 39304
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: What is to correct way to disconnect WiFi?

Sun Jan 12, 2014 1:11 am

spwx wrote:Thanks for the reply.

Just to clarify, you are saying to use ifdown wlan0?
That's the command that works for me.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Return to “Beginners”