[OpenWrt-Devel] [PATCH] hostapd: add WEP as queryable build feature

David Bauer mail at david-bauer.net
Fri May 22 15:40:00 EDT 2020


Just to have it documented it somewhere:

On 5/21/20 9:56 AM, David Bauer wrote:
> Expose the WEP support to LuCi or other userspace tools using the

LuCi seems to already make some wrong assumptions about prerequisites
for specific encryption techniques. It assumes WEP as well as open APs
are supported, but OpenWrt always creates those VAPs using hostapd, same
goes for STA connections (might be wrong on this one).

Mesh as well as Ad-Hoc networks are supported without hostapd or wpa_supplicant
though.

Best wishes
David

> existing interface. This way they are able to remove WEP from the
> available ciphers if hostapd is built without WEP support.
> 
> Signed-off-by: David Bauer <mail at david-bauer.net>
> ---
>  .../network/services/hostapd/src/src/utils/build_features.h   | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/package/network/services/hostapd/src/src/utils/build_features.h b/package/network/services/hostapd/src/src/utils/build_features.h
> index abebecb570..b28ff6fa9f 100644
> --- a/package/network/services/hostapd/src/src/utils/build_features.h
> +++ b/package/network/services/hostapd/src/src/utils/build_features.h
> @@ -38,6 +38,10 @@ static inline int has_feature(const char *feat)
>  #ifdef CONFIG_SUITEB192
>  	if (!strcmp(feat, "suiteb192"))
>  		return 1;
> +#endif
> +#ifdef CONFIG_WEP
> +	if (!strcmp(feat, "wep"))
> +		return 1;
>  #endif
>  	return 0;
>  }
> 

_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list