include $(TOPDIR)/rules.mk
PKG_NAME:=libiwinfo
include $(TOPDIR)/rules.mk
PKG_NAME:=libiwinfo
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
+PKG_CONFIG_DEPENDS := \
+ CONFIG_PACKAGE_kmod-brcm-wl \
+ CONFIG_PACKAGE_kmod-brcm-wl-mini \
+ CONFIG_PACKAGE_kmod-brcm-wl-mimo \
+ CONFIG_PACKAGE_kmod-madwifi \
+ CONFIG_PACKAGE_kmod-mac80211
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/package.mk
static char * print_txpower(const struct iwinfo_ops *iw, const char *ifname)
{
static char * print_txpower(const struct iwinfo_ops *iw, const char *ifname)
{
+ int pwr, off;
+ if (iw->txpower_offset(ifname, &off))
+ off = 0;
+
if (iw->txpower(ifname, &pwr))
pwr = -1;
if (iw->txpower(ifname, &pwr))
pwr = -1;
return format_txpower(pwr);
}
return format_txpower(pwr);
}