How to get 802.11 protocol type of wireless interface in Debian 8.6?

1

1

I have one wireless interface that connected to an access point (AP), and I want to know which type of 802.11 protocol (e.g. 802.11n or 802.11b) is used to communicate with AP. I know there is a Linux command iw can get some information of wireless interface, such as signal strength. But I don't find how to get 802.11 protocol type by iw.

yangfr

Posted 2016-11-16T01:41:15.260

Reputation: 11

Answers

0

The output of iw dev wlan0 station dump includes the currently used transfer and receive bitrate to and from the AP, and this indicates which protocol (802.11b, 802.11g, 802.11g) is currently used if you know e.g. it's in the 2.4 GHz band.

The output of iw dev wlan0 scan dump shows which rates the AP accepts, and again this indicates which protocol(s) the AP supports.

I don't know any way to directly get the protocol by name.

dirkt

Posted 2016-11-16T01:41:15.260

Reputation: 11 627

The iwconfig <interface> command should also list the frequency of the link, and some google-fu should link that frequency to a given protocol as, I believe, each protocol (a, b, g, n, etc) use their own set of frequencies. – music2myear – 2016-11-18T23:32:47.123

@music2myear: Sorry, that's not correct. b, g, n for example all use the same frequencies. See here.

– dirkt – 2016-11-19T07:08:16.037

Today I learned. – music2myear – 2016-11-20T04:23:33.160