Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Wireless Internet > Need of Linux commands to identify WiFi adapter & WiFi connection related properties

Forgot Password?
 Wireless Internet   Anything related to getting wireless set up in Linux. WLAN, WiFi, etc.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 06-12-2009   #1 (permalink)
Just Joined!
 
Join Date: May 2009
Posts: 3
Need of Linux commands to identify WiFi adapter & WiFi connection related properties

Hi All,

I want Linux commands to identify following things :

- WiFi adapter
- To connect to WiFi adapter
- To disable the WiFi adapter
- To identify the Access points for WiFi connection

Please help me, What Commands shall I use to identify above all.

How to use the output of linux commands in C++ application.


Regards,
Kamakshi
itskamakshi is offline  


Reply With Quote
Old 06-12-2009   #2 (permalink)
Trusted Penguin
 
waterhead's Avatar
 
Join Date: Jul 2004
Location: Franklin, Wisconsin
Posts: 3,957
Quote:
Originally Posted by itskamakshi View Post
Hi All,

I want Linux commands to identify following things :

- WiFi adapter
This can be achieved with standard Linux commands. Read through the post linked to below, for more info on that.

Wireless Setup - Start Here


Quote:
- To connect to WiFi adapter
- To disable the WiFi adapter
Using standard Linux network commands ifup and ifdown will accomplish this.
Quote:
- To identify the Access points for WiFi connection
You should install the wireless-tools package (if it wasn't installed by default). It contains these commands:

  • iwconfig manipulate the basic wireless parameters
  • iwlist allow to initiate scanning and list frequencies, bit-rates, encryption keys...
  • iwspy allow to get per node link quality
  • iwpriv allow to manipulate the Wireless Extensions specific to a driver (private)
  • ifrename allow to name interfaces based on various static criteria

To scan for available networks use the iwlist command.
Code:
iwlist wlan0 scan
Quote:
How to use the output of linux commands in C++ application.
I'm not a code monkey, so I can't help you with that.
__________________
Paul

Please do not PM me with requests for help. I will not reply.
waterhead is offline   Reply With Quote
Old 06-13-2009   #3 (permalink)
Linux User
 
Join Date: May 2009
Location: Kamloops, B.C., Canada
Posts: 325
I haven't coded for a long time, but a simple subroutine to issue the command and put the results into a variable you can use later should do it.
__________________
Registered Linux User #420832
Hal343 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 05:28 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2