diff options
author | Cy Schubert <cy@FreeBSD.org> | 2019-04-22 15:42:53 +0000 |
---|---|---|
committer | Cy Schubert <cy@FreeBSD.org> | 2019-04-22 15:42:53 +0000 |
commit | 6e6d0eb51ef7b7487340bae7f20097ee5a57dbf4 (patch) | |
tree | 406310b03a08c8e00c863a82934ba6a8e33c6b2f /src/drivers/driver_common.c | |
parent | 8a36c5c2ca4d1f8a900ca3d9ffde40b96463def7 (diff) | |
download | src-test2-6e6d0eb51ef7b7487340bae7f20097ee5a57dbf4.tar.gz src-test2-6e6d0eb51ef7b7487340bae7f20097ee5a57dbf4.zip |
Notes
Diffstat (limited to 'src/drivers/driver_common.c')
-rw-r--r-- | src/drivers/driver_common.c | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/src/drivers/driver_common.c b/src/drivers/driver_common.c index ac0916e4061f..e55e6cd2b795 100644 --- a/src/drivers/driver_common.c +++ b/src/drivers/driver_common.c @@ -115,6 +115,25 @@ const char * channel_width_to_string(enum chan_width width) } +int channel_width_to_int(enum chan_width width) +{ + switch (width) { + case CHAN_WIDTH_20_NOHT: + case CHAN_WIDTH_20: + return 20; + case CHAN_WIDTH_40: + return 40; + case CHAN_WIDTH_80: + return 80; + case CHAN_WIDTH_80P80: + case CHAN_WIDTH_160: + return 160; + default: + return 0; + } +} + + int ht_supported(const struct hostapd_hw_modes *mode) { if (!(mode->flags & HOSTAPD_MODE_FLAG_HT_INFO_KNOWN)) { @@ -234,7 +253,8 @@ const char * driver_flag_to_string(u64 flag) DF2S(DRIVER_IE); DF2S(SET_KEYS_AFTER_ASSOC); DF2S(DFS_OFFLOAD); - DF2S(4WAY_HANDSHAKE); + DF2S(4WAY_HANDSHAKE_PSK); + DF2S(4WAY_HANDSHAKE_8021X); DF2S(WIRED); DF2S(SME); DF2S(AP); |