xieyaxiongfly / Atheros_CSI_tool_OpenWRT_src

GNU General Public License v2.0
114 stars 53 forks source link

luci.c:924:31: error: 'IWINFO_KMGMT_SAE' undeclared #42

Closed liucc07 closed 4 years ago

liucc07 commented 4 years ago

It goes well if no luci, but if the Luci is slected, you will receive the error: Atheros_CSI_tool_OpenWRT_src/build_dir/target-mips_24kc_musl/rpcd-mod-luci-20191114/luci.c:924:31: error: 'IWINFO_KMGMT_SAE' undeclared (first use in this function); did you mean 'IWINFO_KMGMT_NAMES'? if (crypto.auth_suites & IWINFO_KMGMT_SAE) ^~~~ IWINFO_KMGMT_NAMES

Anyone can help?

liucc07 commented 4 years ago

The reason is it does not support WPA3,you can solve by add the definition of IWINFO_KMGMT_SAE and IWINFO_KMGMT_OWE in the file iwinfo.h line 45 like:

define IWINFO_KMGMT_NONE (1 << 0)

define IWINFO_KMGMT_8021x (1 << 1)

define IWINFO_KMGMT_PSK (1 << 2)

define IWINFO_KMGMT_SAE (1 << 3)

define IWINFO_KMGMT_OWE (1 << 4)

define IWINFO_KMGMT_COUNT 5