Re: driver_nl80211 does not compile

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



wt., 14 mar 2023 o 22:37 Nick <vincent@xxxxxxxxxxxx> 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@e850:~/pandora/ax6000/build_dir/target-aarch64_cortex-a53_musl/libnl-tiny-2022-11-01-db3b2cdb$
rgrep nla_get_s8
janusz@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@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@e850:~/pandora/ax6000/build_dir/target-aarch64_cortex-a53_musl/libnl-tiny-2022-11-01-db3b2cdb$

BR
Janusz

_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap




[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux