diff options
author | Milind Murhekar <m.murhekar@samsung.com> | 2018-09-21 19:36:20 +0530 |
---|---|---|
committer | Milind Murhekar <m.murhekar@samsung.com> | 2018-10-05 14:30:51 +0530 |
commit | 3c5d316b64f60ee6fb7b2bb85c22fad385cb0f91 (patch) | |
tree | 4eabf0d0bfb9780fdecb13938ff16660d6652e06 /gsupplicant/gsupplicant.h | |
parent | 071fe548f78efbfa84ee6841c013713903a7e28c (diff) | |
download | connman-3c5d316b64f60ee6fb7b2bb85c22fad385cb0f91.tar.gz connman-3c5d316b64f60ee6fb7b2bb85c22fad385cb0f91.tar.bz2 connman-3c5d316b64f60ee6fb7b2bb85c22fad385cb0f91.zip |
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
Diffstat (limited to 'gsupplicant/gsupplicant.h')
-rw-r--r-- | gsupplicant/gsupplicant.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gsupplicant/gsupplicant.h b/gsupplicant/gsupplicant.h index 035789e5..597fe751 100644 --- a/gsupplicant/gsupplicant.h +++ b/gsupplicant/gsupplicant.h @@ -135,6 +135,16 @@ typedef enum { G_SUPPLICANT_EAP_KEYMGMT_CCKM, G_SUPPLICANT_EAP_KEYMGMT_OKC, } GSupplicantEapKeymgmt; + +typedef enum { + G_SUPPLICANT_MODE_IEEE80211_UNKNOWN, + G_SUPPLICANT_MODE_IEEE80211B, + G_SUPPLICANT_MODE_IEEE80211BG, + G_SUPPLICANT_MODE_IEEE80211BGN, + G_SUPPLICANT_MODE_IEEE80211A, + G_SUPPLICANT_MODE_IEEE80211AN, + G_SUPPLICANT_MODE_IEEE80211ANAC, +} GSupplicantPhy_mode; #endif typedef enum { @@ -458,6 +468,7 @@ void *g_supplicant_network_get_wifi_vsie(GSupplicantNetwork *network); const unsigned char *g_supplicant_network_get_countrycode(GSupplicantNetwork *network); void *g_supplicant_network_get_bssid_list(GSupplicantNetwork *network); +GSupplicantPhy_mode g_supplicant_network_get_phy_mode(GSupplicantNetwork *network); #endif struct _GSupplicantCallbacks { |