Changeset 19194


Ignore:
Timestamp:
2010-01-17T21:49:28+01:00 (8 years ago)
Author:
nbd
Message:

iw, mac80211: get the frequency info per-netdev instead of per-phy

Location:
trunk/package
Files:
1 added
2 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/iw/patches/110-freq.patch

    r19179 r19194  
    1 --- a/info.c 
    2 +++ b/info.c 
    3 @@ -62,6 +62,27 @@ static int print_phy_handler(struct nl_m 
    4         if (tb_msg[NL80211_ATTR_WIPHY_NAME]) 
    5                 printf("Wiphy %s\n", nla_get_string(tb_msg[NL80211_ATTR_WIPHY_NAME])); 
    6   
     1--- a/interface.c 
     2+++ b/interface.c 
     3@@ -260,6 +260,27 @@ static int print_iface_handler(struct nl 
     4                printf("%s\tifindex %d\n", indent, nla_get_u32(tb_msg[NL80211_ATTR_IFINDEX])); 
     5        if (tb_msg[NL80211_ATTR_IFTYPE]) 
     6                printf("%s\ttype %s\n", indent, iftype_name(nla_get_u32(tb_msg[NL80211_ATTR_IFTYPE]))); 
    77+       if (tb_msg[NL80211_ATTR_WIPHY_FREQ]) { 
    88+               const char *mode; 
     
    2323+                       } 
    2424+ 
    25 +               printf("\tCurrent frequency: %d MHz %s\n", nla_get_u32(tb_msg[NL80211_ATTR_WIPHY_FREQ]), mode); 
     25+               printf("%s\tfrequency %d MHz %s\n", indent, nla_get_u32(tb_msg[NL80211_ATTR_WIPHY_FREQ]), mode); 
    2626+       } 
    2727+ 
    28         nla_for_each_nested(nl_band, tb_msg[NL80211_ATTR_WIPHY_BANDS], rem_band) { 
    29                 printf("\tBand %d:\n", bandidx); 
    30                 bandidx++; 
     28  
     29        return NL_SKIP; 
     30 } 
Note: See TracChangeset for help on using the changeset viewer.