Changeset 36417


Ignore:
Timestamp:
2013-04-24T16:44:20+02:00 (5 years ago)
Author:
jow
Message:

iwinfo: add SR71-15 radio info, fix nl80211 channel/frequency reporting on some architectures

Location:
trunk/package/network/utils/iwinfo
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/network/utils/iwinfo/Makefile

    r36339 r36417  
    88 
    99PKG_NAME:=libiwinfo 
    10 PKG_RELEASE:=41 
     10PKG_RELEASE:=42 
    1111 
    1212PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME) 
  • trunk/package/network/utils/iwinfo/src/iwinfo_lib.c

    r34982 r36417  
    362362        { VENDOR_UBNT, "SR5",                   0x168c, 0x0013, 0x168c, 0x2042,  7,     0 }, 
    363363        { VENDOR_UBNT, "SR9",                   0x168c, 0x0013, 0x7777, 0x2009, 12, -1500 }, 
    364         { VENDOR_UBNT, "SR71A",                 0x168c, 0x0027, 0x168c, 0x2082, 10,     0 }, 
    365         { VENDOR_UBNT, "SR71",                  0x168c, 0x0027, 0x0777, 0x4082, 10,     0 }, 
     364        { VENDOR_UBNT, "SR71A",                 0x168c, 0x0027, 0x168c, 0x2082,  7,     0 }, 
     365        { VENDOR_UBNT, "SR71",                  0x168c, 0x0027, 0x0777, 0x4082,  7,     0 }, 
     366        { VENDOR_UBNT, "SR71-15",               0x168c, 0x0029, 0x0777, 0x4005,  7,     0 }, 
    366367#endif 
    367368#ifdef USE_NL80211 
  • trunk/package/network/utils/iwinfo/src/iwinfo_nl80211.c

    r36292 r36417  
    945945int nl80211_get_frequency(const char *ifname, int *buf) 
    946946{ 
     947        int chn; 
    947948        char *res, *channel; 
    948949        struct nl80211_msg_conveyor *req; 
     
    964965            (channel = nl80211_getval(NULL, res, "channel"))) 
    965966        { 
    966                 *buf = nl80211_channel2freq(atoi(channel), 
    967                                             nl80211_getval(NULL, res, "hw_mode")); 
     967                chn = atoi(channel); 
     968                *buf = nl80211_channel2freq(chn, nl80211_getval(NULL, res, "hw_mode")); 
    968969        } 
    969970        else 
Note: See TracChangeset for help on using the changeset viewer.