Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.


  Search this Thread
Old 06-07-2010, 05:09 PM   #1
LQ Newbie
Registered: Jun 2010
Posts: 19

Rep: Reputation: 0
Question Getting the RSSI information in C

Hello everyone!

I'm studying socket programming in wireless devices and one of the main issues that I'm facing right now is getting the RSSI information from a client.

I'm running scripts on a WRT54GL router with OpenWRT. As far as I understand, getting the RSSI information is possible with "wl rssi <client MAC>". So I thought I could use a popen(); to run a command and get the output within the program.I tried it and it prompts:

root@mesh: wl rssi 00:23:08:B3:04:8C
rssi is -56
However, I noticed that even though I turned off the laptop's WLAN NIC, it still prompted something!!. Moreover, if I enter an imaginary MAC address, it still shows something:

root@mesh: wl rssi 11:22:33:44:55:66
rssi is -61
I found that this is not a reliable method, since after making another test that consisted in moving away from the router while running "wl rssi 00:23:08:B3:04:8C" every second, the values didn't change too much.

I also tried this method: I ran the code on the router, but I'm not sure where to specify the RSSI from a target client.

So I would like to ask: Is there a way to get the RSSI information from an specific client in C?.

Thank you.
Old 06-09-2010, 03:49 PM   #2
LQ Newbie
Registered: Jun 2010
Posts: 19

Original Poster
Rep: Reputation: 0
bump! anyone?
Old 09-06-2011, 10:41 AM   #3
LQ Newbie
Registered: Sep 2011
Posts: 3

Rep: Reputation: Disabled
Any success in reading RSSI from the client ?

Old 09-13-2011, 02:29 AM   #4
LQ Newbie
Registered: Sep 2011
Posts: 3

Rep: Reputation: Disabled
I think you can try iwspy - it gives all you need. However, as far as I understand not all cards support it. Use command
sudo iwspy <interface name> <ip-address to monitor>
. However, it doesn't work on my card AR5413, so I have to find some other solution.


openwrt, programming, socket, wrt54g

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
ioctl call for obtaining the RSSI saioha Linux - Wireless Networking 11 03-27-2012 11:47 AM
How to find out indone information and datablocks information in a file system chaitanya1982 Linux - Newbie 1 09-24-2008 01:58 AM
need information venu Linux - Certification 4 10-07-2006 01:37 PM
Hiding machine information and root information geletine Linux - Security 6 07-14-2006 07:57 AM
More Information gutter007 Linux - General 2 01-31-2001 07:25 PM > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 07:47 PM.

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