driver_nl80211 does not compile

Janusz Dziedzic janusz.dziedzic at gmail.com
Wed Mar 15 01:59:32 PDT 2023


wt., 14 mar 2023 o 22:37 Nick <vincent at systemli.org> napisał(a):
>
> 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?
>
Seems like libnl-tiny problem?

janusz at e850:~/pandora/ax6000/build_dir/target-aarch64_cortex-a53_musl/libnl-tiny-2022-11-01-db3b2cdb$
rgrep nla_get_s8
janusz at e850:~/pandora/ax6000/build_dir/target-aarch64_cortex-a53_musl/libnl-tiny-2022-11-01-db3b2cdb$
find /usr/ -name attr.h
/usr/include/libnl3/netlink/attr.h
janusz at e850:~/pandora/ax6000/build_dir/target-aarch64_cortex-a53_musl/libnl-tiny-2022-11-01-db3b2cdb$
grep nla_get_s8 /usr/include/libnl3/netlink/attr.h
extern int8_t           nla_get_s8(const struct nlattr *);
janusz at e850:~/pandora/ax6000/build_dir/target-aarch64_cortex-a53_musl/libnl-tiny-2022-11-01-db3b2cdb$

BR
Janusz



More information about the Hostap mailing list