openwrt-routing/batman-adv/patches
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
..
0001-batman-adv-Fix-build-of-multicast-code-against-Linux.patch batman-adv: update to version 2022.1 2022-05-06 22:09:55 +02:00
0002-Revert-batman-adv-Switch-to-kstrtox.h-for-kstrtou64.patch batman-adv: Drop unused compat patches 2022-04-17 14:00:29 +02:00
0003-Revert-batman-adv-use-Linux-s-stdarg.h.patch batman-adv: Drop unused compat patches 2022-04-17 14:00:29 +02:00
0004-Revert-batman-adv-Migrate-to-linux-container_of.h.patch batman-adv: update to version 2022.3 2022-11-10 21:44:20 +01:00
0005-fix-batadv_is_cfg80211_netdev.patch batman-adv: fix compilation bug in batadv_is_cfg80211_netdev() 2023-04-07 09:03:04 -05:00