LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 01-22-2018, 12:14 AM   #1
TheLexx
Member
 
Registered: Apr 2013
Distribution: Gentoo
Posts: 79

Rep: Reputation: Disabled
Detecting Wi-Fi G vs N


I am looking for a tool on Linux that will help me distinguish between a signal from router that provides Wi-Fi G and one that provides Wi-Fi N, preferably one that works in command line mode. I've looked over man page for iwconfig and others and not found the info.

One way that I can of sort of do it is to plug in my older G only USB then scan for Wi-Fi. Then put in my G/N USB and rescan.

I suppose that looking at available bit rates using scan from iwlist will help if I do it with the G/N USB stick. If the highest rates are available, the device must be capable of Wi-Fi N.

I have related question concerning Wi-Fi standards. Can a single device connect to both Wi-Fi N and G clients if it only has one MAC/ESSID address? Or, does any device that allows the use of both G and N have to have two separate MAC/ESSID addresses, One for N and one for G?
 
Old 01-22-2018, 01:18 AM   #2
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,802

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
Quote:
I suppose that looking at available bit rates using scan from iwlist will help if I do it with the G/N USB stick. If the highest rates are available, the device must be capable of Wi-Fi N.
That is it in a nutshell.

The 'iw' command is your friend here

https://wiki.gentoo.org/wiki/Wifi#iw_command

To get the card capabilities
Code:
iw list
or to get basic summarised capabilities
Code:
iwconfig wlan0
From a scan using
Code:
iw wlan0 scan
the bit rate and frequency details provide information about the capability of the AP. If HT (high throughput) output is present, then that would signify 802.11n capability.

These threads go into further detail...
https://superuser.com/questions/6797...r-capabilities
https://unix.stackexchange.com/quest...e-access-point
 
Old 01-22-2018, 01:26 AM   #3
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,802

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
Quote:
I have related question concerning Wi-Fi standards. Can a single device connect to both Wi-Fi N and G clients if it only has one MAC/ESSID address?
Yes, if the AP is configured to allow both standards, then a client with wireless G will just connect using that standard. Another wireless N device can still connect at the higher N standard concurrently.
 
Old 01-22-2018, 04:36 PM   #4
TheLexx
Member
 
Registered: Apr 2013
Distribution: Gentoo
Posts: 79

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ferrari View Post
That is it in a nutshell.

The 'iw' command is your friend here

https://wiki.gentoo.org/wiki/Wifi#iw_command

To get the card capabilities
Code:
iw list
Thanks ferrari, that is what was needed to push me in the right direction. I think it was back in the 2.6.XX days of Linux when I really looked into the Wi-Fi command man pages. I was unaware of the command "iw" which at first glance seams to supersede the capabilities of the "iwlist" command that I have been using up to know.

If I have further questions after I have fully explored iw I will post them on this thread.

Last edited by TheLexx; 01-22-2018 at 04:47 PM.
 
1 members found this post helpful.
  


Reply



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
USB devices stop detecting (or un-detecting). Mleahy Linux - Desktop 1 07-31-2011 02:08 AM
RedHat 9 is not detecting the LAN card, but Win'98 is detecting the LAN card SKYNAT Linux - Newbie 4 12-28-2007 10:25 PM
Not Detecting insizor Linux - Laptop and Netbook 1 04-18-2007 09:54 AM
detecting my IP jonaskoelker Linux - Networking 5 01-16-2005 06:45 AM

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

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