Find the answer to your Linux question:
Results 1 to 3 of 3
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    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

  2. #2
    Linux Guru
    Join Date
    Jul 2004
    Posts
    4,593
    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


    - To connect to WiFi adapter
    - To disable the WiFi adapter
    Using standard Linux network commands ifup and ifdown will accomplish this.
    - 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
    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.
    Please do not send Private Messages to me with requests for help. I will not reply.

  3. #3
    Linux User
    Join Date
    May 2009
    Location
    Big River, Sask, Canada
    Posts
    342
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •