driver_nl80211 does not compile

Nick vincent at systemli.org
Tue Mar 14 14:32:19 PDT 2023


I wanted to update the OpenWrt hostapd version to the newest git 
version. I encountered following error:

>   ../src/drivers/driver_nl80211.c: In function 'get_sta_handler':
>   ../src/drivers/driver_nl80211.c:7474:63: error: 'NLA_S8' undeclared 
> (first use in this function); did you mean 'NLA_U8'?
>    7474 |                 [NL80211_STA_INFO_ACK_SIGNAL_AVG] = { .type 
> = NLA_S8 },
> | ^~~~~~
> | NLA_U8
>   ../src/drivers/driver_nl80211.c:7474:63: note: each undeclared 
> identifier is reported only once for each function it appears in
>   ../src/drivers/driver_nl80211.c:7580:25: warning: implicit 
> declaration of function 'nla_get_s8'; did you mean 'nla_get_u8'? 
> [-Wimplicit-function-declaration]
>    7580 | nla_get_s8(stats[NL80211_STA_INFO_ACK_SIGNAL_AVG]);
>         |                         ^~~~~~~~~~
>         |                         nla_get_u8
As a workaround I removed the corresponding lines, however, this is not 
an acceptable solution:
https://github.com/openwrt/openwrt/blob/656eac04092bddf226f49dc81b3b4b9582e609d2/package/network/services/hostapd/patches/180-nl80211-fix-compiling.patch
Is there a proper fix available?

Bests
Nick




More information about the Hostap mailing list