LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-12-2012, 11:38 AM   #1
boscop
LQ Newbie
 
Registered: Mar 2012
Posts: 11

Rep: Reputation: Disabled
How to get the signal quality value from the /proc/net/wireless file


Hi, I am writing a bash file where the signal level will trigger the handover, I want to get the signal level value or the value of the quality of the link from the /proc/net/wireless and i don't know how to do it as I need it to be able to do my project

Thanks for your help
 
Old 03-12-2012, 02:57 PM   #2
xeleema
Member
 
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 988
Blog Entries: 4

Rep: Reputation: 254Reputation: 254Reputation: 254
Greetingz!

Okay, this *kind* of sounds like a homework question, but I'll bite;

1) Make sure you can 'read' the file.
Code:
user@linux$ ls -l /proc/net/wireless
-r--r--r-- 1 root root 0 Mar 12 14:54 /proc/net/wireless
2) Since it's a /proc file, you're probably going to have to just 'cat' it and 'grep' for the output
Code:
user@linux$ cat /proc/net/wireless
Inter-| sta-|   Quality        |   Discarded packets               | Missed | WE
 face | tus | link level noise |  nwid  crypt   frag  retry   misc | beacon | 20
(I have no interfaces defined because I ripped-out my WiFi card).

Hint: If you already know the name of the interface, 'cat filename | awk '/iface/ {print $field#}'

Last edited by xeleema; 03-12-2012 at 02:59 PM.
 
  


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
Is there a /proc/net/... file for IPv6 similar to /proc/net/arp for mac addresses? systemlordanubis Linux - Networking 1 03-02-2012 06:36 PM
proc/net/wireless please HELP plugo Linux - Kernel 6 06-09-2009 06:01 PM
iwevent - wireless 'quality' of signal User0x45 Slackware 1 01-05-2009 02:20 PM
Relationship between the signal level get from iwconfig and /proc/net/wireless? christyyim Linux - Wireless Networking 0 12-19-2008 11:13 AM
Wireless Signal Strength and Quality tubatodd Slackware 5 08-07-2005 08:30 AM

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

All times are GMT -5. The time now is 02:55 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