Add IEEE 802.11 protocol(b/g/n/a/ac) Modes of APs 13/189913/9
authorMilind Murhekar <m.murhekar@samsung.com>
Fri, 21 Sep 2018 14:06:20 +0000 (19:36 +0530)
committerMilind Murhekar <m.murhekar@samsung.com>
Fri, 5 Oct 2018 09:00:51 +0000 (14:30 +0530)
commit3c5d316b64f60ee6fb7b2bb85c22fad385cb0f91
tree4eabf0d0bfb9780fdecb13938ff16660d6652e06
parent071fe548f78efbfa84ee6841c013713903a7e28c
Add IEEE 802.11 protocol(b/g/n/a/ac) Modes of APs

This patch appends the IEEE 802.11b/g/n/a/ac PHY
protocol modes of scanned Access Points
using internal logic.

Following logic is used to determine WLAN HW protocol:-
1) If “Supported rates” is only till 11 Mbps, and frequency is in
2.4GHz band, then protocol is 802.11B.
2) If “Supported rates” is till 54Mbps or “Extended supported rates”
are present, and frequency is in 2.4GHz band, then protocol is 802.11G.
3) If “Supported rates” is only till 54 Mbps, frequency is in 5GHz
band , then protocol is 802.11A.
4) If “HT capabilities” is supported , then protocol is 802.11N.
5) If “HT capabilities” & “VHT” is supported and frequency is in 5 GHz
band, then protocol is 802.11AC.

Change-Id: I1156ef249cf4a8052a883d31da66788c7d2de22f
gsupplicant/gsupplicant.h
gsupplicant/supplicant.c
include/network.h
plugins/wifi.c
src/connman.h
src/network.c
src/service.c