OpenWrt folks created a tiny version of libnl based on a git snapshot, which only contains genl, not rtnetlink or any of the netfilter stuff, and compiles down to less than 30k in binary size. You can find it here:
svn co svn:svn.openwrt.org/openwrt/trunk/package/libs/libnl-tiny ===== Kerneldoc for nl80211 ===== include/uapi/linux/nl80211.h ===== testmode (CONFIG_NL80211_TESTMODE=y) ===== The nl80211 testmode command helps implementing things like factory calibration or validation tools for wireless chips. This functionality could possibly be used for SAR testing (Specific Absorption Rate), MPE testing (Maximum Permissible Exposure), RF testing (Radio Frequency), as possibly requested by institutions such as FCC. According to kernelnewbies.org Linux_2_6_32, testmode has been introduced by nicely described commit aff89a9b90849. This setting is currently provided by net/wireless/Kconfig. For a way to determine whether a wireless driver actually supports nl80211 testmode interface, see [PATCH] nl80211: add testmode to the list of supported commands. Current users of the testmode interface are: * wl12xx calibrator (chipsets WL1271 etc.) TODO: could list (references to) ready-made scripts which implement nicely automated / elegant workflows for SAR testing etc. For ATH9K chipsets, there's SAR testing functionality provided via the non-testmode setting CONFIG_ATH9K_TX99. Hmm, this possibly needs conversion to (additionally?) providing the generic nl80211 testmode functionality?