LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-25-2014, 05:47 AM   #1
nix84
Member
 
Registered: Apr 2014
Posts: 276

Rep: Reputation: Disabled
wlan0 becomes unknown interface: No such


I have a script in which I bring down & up wlan0.
After about 4-6 passes I get the following error both from the script and when I issue the same command (ifconfig wlan0 up) on the command line:
ifconfig wlan0 up
wlan0: unknown interface: No such device

In the script just for cleanliness I use:
rm -f /var/run/wpa_supplicant/wlan0
Does someone have an explanation why wlan0 becomes unknown?
Thanks
 
Old 04-26-2014, 03:22 PM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
why do you remove that file?
maybe it would work better if you took that bit out of your script.
what's that script doing anyway?
and why are you constantly connecting and disconnecting from wlan?
maybe you should explain your whole setup in more detail.
 
Old 04-26-2014, 09:30 PM   #3
nix84
Member
 
Registered: Apr 2014
Posts: 276

Original Poster
Rep: Reputation: Disabled
The file is removed because with repeated use it gets corrupted by the system (not by the script).

The script is designed to find APs, display pertinent info on each, and connect via ad-hoc, WEP, WPA, or WPA2 proviso there is permission of course. It is also a fun exercise in scripting and learning about wifi.

I am disconnecting obviously because I am testing.

Last edited by nix84; 04-26-2014 at 09:31 PM.
 
Old 04-27-2014, 05:16 AM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by nix84 View Post
The file is removed because with repeated use it gets corrupted by the system
how did you deduce that? if that were true then i'd say your actual problem is elsewhere in your system.

Quote:
The script is designed to find APs, display pertinent info on each, and connect via ad-hoc, WEP, WPA, or WPA2 proviso there is permission of course. It is also a fun exercise in scripting and learning about wifi.
yeah, it sounds like the kind of fun destined to bring down your system. i mean why would you want to constantly connect, disconnect and reconnect to different access points in a real situation?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
wlan0: unknown interface: No such device senthilcaesar Linux - Networking 3 11-03-2013 02:42 AM
[SOLVED] siocsifflags unknown error 132 - wlan0 intel wifi 5100 botnet Slackware 2 11-27-2009 06:44 PM
problem installing ma111 USB on fedora 3: wlan0: unknown interface: No such device sohmc Linux - Wireless Networking 1 05-17-2005 12:09 AM
Strange interface wlan0 eduardomsilva Linux - Wireless Networking 8 02-17-2005 09:52 AM
About the wlan0 interface and driver problem paranoia1980 Linux - Wireless Networking 73 03-08-2004 04:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration