From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Sven Eckelmann Subject: Re: Unknown symbol cfg80211_get_station Date: Sat, 06 Jul 2019 14:16:21 +0200 Message-ID: <1875314.jOPAOSbl7z@sven-edge> In-Reply-To: References: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart3497251.KLex8dkMXf"; micalg="pgp-sha512"; protocol="application/pgp-signature" List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: b.a.t.m.a.n@lists.open-mesh.org Cc: Moritz Warning , Ubuntu Kernel Team --nextPart3497251.KLex8dkMXf Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" On Friday, 5 July 2019 16:51:56 CEST Moritz Warning wrote: > on an AWS server I get this error: > > $ modprobe batman-adv > $ dmesg > ... > [ 1310.125438] batman_adv: Unknown symbol cfg80211_get_station (err 0) > > $ uname -a > Linux ip-172-31-47-217 4.15.0-1032-aws #34-Ubuntu SMP Thu Jan 17 15:18:09 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux > I have downloaded the headers [1] and they have following defined in include/config/cfg80211.h: #if IS_ENABLED(CONFIG_CFG80211) /** * cfg80211_get_station - retrieve information about a given station * @dev: the device where the station is supposed to be connected to * @mac_addr: the mac address of the station of interest * @sinfo: pointer to the structure to fill with the information * * Returns 0 on success and sinfo is filled with the available information * otherwise returns a negative error code and the content of sinfo has to be * considered undefined. */ int cfg80211_get_station(struct net_device *dev, const u8 *mac_addr, struct station_info *sinfo); #else static inline int cfg80211_get_station(struct net_device *dev, const u8 *mac_addr, struct station_info *sinfo) { return -ENOENT; } #endif So this function should be always defined by the kernel. Either through this header or through the cfg80211 module (which can be part of the kernel binary itself). I have then downloaded the config deb [2]. It has the .config file included $ grep CONFIG_CFG80211 usr/src/linux-headers-4.15.0-1032-aws/.config CONFIG_CFG80211=m # CONFIG_CFG80211_DEVELOPER_WARNINGS is not set # CONFIG_CFG80211_CERTIFICATION_ONUS is not set CONFIG_CFG80211_REQUIRE_SIGNED_REGDB=y CONFIG_CFG80211_USE_KERNEL_REGDB_KEYS=y CONFIG_CFG80211_DEFAULT_PS=y CONFIG_CFG80211_DEBUGFS=y CONFIG_CFG80211_CRDA_SUPPORT=y CONFIG_CFG80211_WEXT=y So it is enabled as a module. So please load this module. And if it is not included in any package (what I am currently suspecting), please contact the maintainers [3]. They either have to ship the modules or disable any modules in their build. But building them and not shipping is breaking the dependencies of other modules (as shown by you). Kind regards, Sven [1] http://mirrors.kernel.org/ubuntu/pool/main/l/linux-aws/linux-aws-headers-4.15.0-1032_4.15.0-1032.34_all.deb [2] http://mirrors.kernel.org/ubuntu/pool/main/l/linux-aws/linux-headers-4.15.0-1032-aws_4.15.0-1032.34_amd64.deb [3] https://bugs.launchpad.net/ubuntu/+source/linux-aws/+filebug --nextPart3497251.KLex8dkMXf Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEF10rh2Elc9zjMuACXYcKB8Eme0YFAl0gkRUACgkQXYcKB8Em e0YyohAAwmyAQCIdODNaGiXZasi3HbeVD/7lMlhEMSX7meUNgjB1wbxc0ZPnz8Ug Q2ved9E7dSjKiKDdmnbLH2ODYgc84CxepuE8esfx22nsZVev1mEnPimqUoWtYaG/ MouausAPZmbpXrGm9VGwqrBQPsBUTm9fpSYAcC/XIuE1S3hsBfpF3H0QGXD31rwe uglsU3RdXwmqpdgLGhzBJ0eZGWmCngrUavuIEzmK7TBBDgjCBpFctVYb9Sroky9y VQ+Tb6nQrziG9MSRHdG+IaCZarf9NX3IYsbU6gSqwmVA4SFS09OMEft4ynwaFRDT 1z3lS5p8aFmvZwhSqG5RjboIjrIsNWHW/KVow81OYlmd7F5ZYQzetCshJidOKjSE /pKrtZms0PR1NTU2jQ5w2P5w0nlSJwkrivdSV3Z89gIIo6tstHWdctzgFM9GEXcw vNtbwP9197jKAWGiSkH4iE3wavMSthHLvqfEwdCiO6GysIwDUVHcGe2x4uo9lF90 JdywQSvr2LcvyfWv/M0zo9v4dsUh/puUPJzyq1AvmCiOG9mUPm6U6WhVXMSa/IaA tMRCsOBLOvwEZ/JWK2q2fNH8BHPQqrGbwtumQKkZ5cpEgU98VvzTmbbX3PHgw5bm mw6teDrCsf6QpWUu622bY2+VuoBiUsOT4oYL0U3iT6nz9A1kDw8= =DJyO -----END PGP SIGNATURE----- --nextPart3497251.KLex8dkMXf--