diff options
author | Felix Fietkau <nbd@openwrt.org> | 2010-01-17 20:49:28 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2010-01-17 20:49:28 +0000 |
commit | ac35d4bb537f20ffa7bb8e76afa0383aeee2b3a8 (patch) | |
tree | 28027bfebdeaf99c8358901fc8d7ac14f0bede54 /package/iw | |
parent | 4f7f32a8c5a0a44b2ed690de98124dc383405dc8 (diff) | |
download | upstream-ac35d4bb537f20ffa7bb8e76afa0383aeee2b3a8.tar.gz upstream-ac35d4bb537f20ffa7bb8e76afa0383aeee2b3a8.tar.bz2 upstream-ac35d4bb537f20ffa7bb8e76afa0383aeee2b3a8.zip |
iw, mac80211: get the frequency info per-netdev instead of per-phy
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19194 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/iw')
-rw-r--r-- | package/iw/patches/110-freq.patch | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/package/iw/patches/110-freq.patch b/package/iw/patches/110-freq.patch index 9a00a65e3f..f73d303bb6 100644 --- a/package/iw/patches/110-freq.patch +++ b/package/iw/patches/110-freq.patch @@ -1,9 +1,9 @@ ---- a/info.c -+++ b/info.c -@@ -62,6 +62,27 @@ static int print_phy_handler(struct nl_m - if (tb_msg[NL80211_ATTR_WIPHY_NAME]) - printf("Wiphy %s\n", nla_get_string(tb_msg[NL80211_ATTR_WIPHY_NAME])); - +--- a/interface.c ++++ b/interface.c +@@ -260,6 +260,27 @@ static int print_iface_handler(struct nl + printf("%s\tifindex %d\n", indent, nla_get_u32(tb_msg[NL80211_ATTR_IFINDEX])); + if (tb_msg[NL80211_ATTR_IFTYPE]) + printf("%s\ttype %s\n", indent, iftype_name(nla_get_u32(tb_msg[NL80211_ATTR_IFTYPE]))); + if (tb_msg[NL80211_ATTR_WIPHY_FREQ]) { + const char *mode; + @@ -22,9 +22,9 @@ + mode = ""; + } + -+ printf("\tCurrent frequency: %d MHz %s\n", nla_get_u32(tb_msg[NL80211_ATTR_WIPHY_FREQ]), mode); ++ printf("%s\tfrequency %d MHz %s\n", indent, nla_get_u32(tb_msg[NL80211_ATTR_WIPHY_FREQ]), mode); + } + - nla_for_each_nested(nl_band, tb_msg[NL80211_ATTR_WIPHY_BANDS], rem_band) { - printf("\tBand %d:\n", bandidx); - bandidx++; + + return NL_SKIP; + } |