Changeset 29634


Ignore:
Timestamp:
2012-01-01T17:17:10+01:00 (6 years ago)
Author:
jow
Message:

[package] iwinfo: factor txpower offset into info display output, recompile if driver selection changes

Location:
trunk/package/iwinfo
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/iwinfo/Makefile

    r29462 r29634  
    88 
    99PKG_NAME:=libiwinfo 
    10 PKG_RELEASE:=21 
     10PKG_RELEASE:=22 
    1111 
    1212PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME) 
     13PKG_CONFIG_DEPENDS := \ 
     14        CONFIG_PACKAGE_kmod-brcm-wl \ 
     15        CONFIG_PACKAGE_kmod-brcm-wl-mini \ 
     16        CONFIG_PACKAGE_kmod-brcm-wl-mimo \ 
     17        CONFIG_PACKAGE_kmod-madwifi \ 
     18        CONFIG_PACKAGE_kmod-mac80211 
    1319 
    1420include $(INCLUDE_DIR)/package.mk 
  • trunk/package/iwinfo/src/iwinfo_cli.c

    r29430 r29634  
    392392static char * print_txpower(const struct iwinfo_ops *iw, const char *ifname) 
    393393{ 
    394         int pwr; 
     394        int pwr, off; 
     395        if (iw->txpower_offset(ifname, &off)) 
     396                off = 0; 
     397 
    395398        if (iw->txpower(ifname, &pwr)) 
    396399                pwr = -1; 
     400        else 
     401                pwr += off; 
    397402 
    398403        return format_txpower(pwr); 
Note: See TracChangeset for help on using the changeset viewer.