openwrt-routing/batman-adv
Alexandru Gagniuc 2eb71d7d7a batman-adv: fix compilation bug in batadv_is_cfg80211_netdev()
Because batman-adv is built under backports, not a clean linux tree,
the CONFIG_CFG80211 does not exist. The evaluation of IS_ENABLED() in
batadv_is_cfg80211_netdev() will be false, causing the funtion to
always return false.

This means that the wifi_flags of an interface don't get set, causing
batadv_is_wifi_hardif() to always return false. As a result,
batadv_v_elp_get_throughput() never tries to get the station info from
cfg80211, resulting in the following warning:

    batman_adv: bat0: WiFi driver or ethtool info does not provide
    information about link speeds on interface phy1-mesh0,
    therefore defaulting to hardcoded throughput values of 1.0 Mbps.

So replace CONFIG_CFG80211 with CPTCFG_CFG80211, which is the correct
macro to use under backports.

Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
2023-04-07 09:03:04 -05:00
..
files batman-adv: upgrade package to latest release 2020.3 2020-08-25 20:09:34 +02:00
patches batman-adv: fix compilation bug in batadv_is_cfg80211_netdev() 2023-04-07 09:03:04 -05:00
src batman-adv: update to version 2023.0 2023-01-26 22:29:55 +01:00
Config.in batman-adv: upgrade package to latest release 2021.0 2021-01-28 21:08:27 +01:00
Makefile batman-adv: update to version 2023.0 2023-01-26 22:29:55 +01:00