diff options
Diffstat (limited to 'package/iw')
-rw-r--r-- | package/iw/Makefile | 54 | ||||
-rw-r--r-- | package/iw/patches/001-nl80211_h_sync.patch | 284 | ||||
-rw-r--r-- | package/iw/patches/100-rx_rate.patch | 97 | ||||
-rw-r--r-- | package/iw/patches/110-per_chain_signal_strength.patch | 70 | ||||
-rw-r--r-- | package/iw/patches/120-tdls_peer_indentation.patch | 11 |
5 files changed, 0 insertions, 516 deletions
diff --git a/package/iw/Makefile b/package/iw/Makefile deleted file mode 100644 index f758631a7..000000000 --- a/package/iw/Makefile +++ /dev/null @@ -1,54 +0,0 @@ -# -# Copyright (C) 2007-2011 OpenWrt.org -# -# This is free software, licensed under the GNU General Public License v2. -# See /LICENSE for more information. -# - -include $(TOPDIR)/rules.mk - -PKG_NAME:=iw -PKG_VERSION:=3.3 -PKG_RELEASE:=1 - -PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 -PKG_SOURCE_URL:=http://wireless.kernel.org/download/iw/ -PKG_MD5SUM:=146ad14cdeb39fb88b21efdbb28787d1 - -include $(INCLUDE_DIR)/package.mk - -define Package/iw - SECTION:=net - CATEGORY:=Network - TITLE:=cfg80211 interface configuration utility - URL:=http://wireless.kernel.org/en/users/Documentation/iw - DEPENDS:= +libnl-tiny @(!(TARGET_avr32||TARGET_etrax)||BROKEN) -endef - -define Build/Configure - echo "const char iw_version[] = \"$(PKG_VERSION)\";" > $(PKG_BUILD_DIR)/version.c - rm -f $(PKG_BUILD_DIR)/version.sh - touch $(PKG_BUILD_DIR)/version.sh - chmod +x $(PKG_BUILD_DIR)/version.sh -endef - -TARGET_CPPFLAGS:= \ - -I$(STAGING_DIR)/usr/include/libnl-tiny \ - $(TARGET_CPPFLAGS) \ - -DCONFIG_LIBNL20 \ - -D_GNU_SOURCE - -MAKE_FLAGS += \ - CFLAGS="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS)" \ - LDFLAGS="$(TARGET_LDFLAGS)" \ - NL1FOUND="" NL2FOUND=Y \ - NLLIBNAME="libnl-tiny" \ - LIBS="-lm -lnl-tiny" \ - V=1 - -define Package/iw/install - $(INSTALL_DIR) $(1)/usr/sbin - $(INSTALL_BIN) $(PKG_BUILD_DIR)/iw $(1)/usr/sbin/ -endef - -$(eval $(call BuildPackage,iw)) diff --git a/package/iw/patches/001-nl80211_h_sync.patch b/package/iw/patches/001-nl80211_h_sync.patch deleted file mode 100644 index cccc14475..000000000 --- a/package/iw/patches/001-nl80211_h_sync.patch +++ /dev/null @@ -1,284 +0,0 @@ ---- a/nl80211.h -+++ b/nl80211.h -@@ -156,21 +156,23 @@ - * @NL80211_CMD_DEL_KEY: delete a key identified by %NL80211_ATTR_KEY_IDX - * or %NL80211_ATTR_MAC. - * -- * @NL80211_CMD_GET_BEACON: retrieve beacon information (returned in a -- * %NL80222_CMD_NEW_BEACON message) -- * @NL80211_CMD_SET_BEACON: set the beacon on an access point interface -- * using the %NL80211_ATTR_BEACON_INTERVAL, %NL80211_ATTR_DTIM_PERIOD, -- * %NL80211_ATTR_BEACON_HEAD and %NL80211_ATTR_BEACON_TAIL attributes. -- * Following attributes are provided for drivers that generate full Beacon -- * and Probe Response frames internally: %NL80211_ATTR_SSID, -+ * @NL80211_CMD_GET_BEACON: (not used) -+ * @NL80211_CMD_SET_BEACON: change the beacon on an access point interface -+ * using the %NL80211_ATTR_BEACON_HEAD and %NL80211_ATTR_BEACON_TAIL -+ * attributes. For drivers that generate the beacon and probe responses -+ * internally, the following attributes must be provided: %NL80211_ATTR_IE, -+ * %NL80211_ATTR_IE_PROBE_RESP and %NL80211_ATTR_IE_ASSOC_RESP. -+ * @NL80211_CMD_START_AP: Start AP operation on an AP interface, parameters -+ * are like for %NL80211_CMD_SET_BEACON, and additionally parameters that -+ * do not change are used, these include %NL80211_ATTR_BEACON_INTERVAL, -+ * %NL80211_ATTR_DTIM_PERIOD, %NL80211_ATTR_SSID, - * %NL80211_ATTR_HIDDEN_SSID, %NL80211_ATTR_CIPHERS_PAIRWISE, - * %NL80211_ATTR_CIPHER_GROUP, %NL80211_ATTR_WPA_VERSIONS, - * %NL80211_ATTR_AKM_SUITES, %NL80211_ATTR_PRIVACY, -- * %NL80211_ATTR_AUTH_TYPE, %NL80211_ATTR_IE, %NL80211_ATTR_IE_PROBE_RESP, -- * %NL80211_ATTR_IE_ASSOC_RESP. -- * @NL80211_CMD_NEW_BEACON: add a new beacon to an access point interface, -- * parameters are like for %NL80211_CMD_SET_BEACON. -- * @NL80211_CMD_DEL_BEACON: remove the beacon, stop sending it -+ * %NL80211_ATTR_AUTH_TYPE and %NL80211_ATTR_INACTIVITY_TIMEOUT. -+ * @NL80211_CMD_NEW_BEACON: old alias for %NL80211_CMD_START_AP -+ * @NL80211_CMD_STOP_AP: Stop AP operation on the given interface -+ * @NL80211_CMD_DEL_BEACON: old alias for %NL80211_CMD_STOP_AP - * - * @NL80211_CMD_GET_STATION: Get station attributes for station identified by - * %NL80211_ATTR_MAC on the interface identified by %NL80211_ATTR_IFINDEX. -@@ -367,6 +369,11 @@ - * %NL80211_ATTR_WIPHY_FREQ, %NL80211_ATTR_CONTROL_PORT, - * %NL80211_ATTR_CONTROL_PORT_ETHERTYPE and - * %NL80211_ATTR_CONTROL_PORT_NO_ENCRYPT. -+ * Background scan period can optionally be -+ * specified in %NL80211_ATTR_BG_SCAN_PERIOD, -+ * if not specified default background scan configuration -+ * in driver is used and if period value is 0, bg scan will be disabled. -+ * This attribute is ignored if driver does not support roam scan. - * It is also sent as an event, with the BSSID and response IEs when the - * connection is established or failed to be established. This can be - * determined by the STATUS_CODE attribute. -@@ -541,6 +548,11 @@ - * @NL80211_CMD_SET_NOACK_MAP: sets a bitmap for the individual TIDs whether - * No Acknowledgement Policy should be applied. - * -+ * @NL80211_CMD_CH_SWITCH_NOTIFY: An AP or GO may decide to switch channels -+ * independently of the userspace SME, send this event indicating -+ * %NL80211_ATTR_IFINDEX is now on %NL80211_ATTR_WIPHY_FREQ with -+ * %NL80211_ATTR_WIPHY_CHANNEL_TYPE. -+ * - * @NL80211_CMD_MAX: highest used command number - * @__NL80211_CMD_AFTER_LAST: internal use - */ -@@ -565,8 +577,10 @@ enum nl80211_commands { - - NL80211_CMD_GET_BEACON, - NL80211_CMD_SET_BEACON, -- NL80211_CMD_NEW_BEACON, -- NL80211_CMD_DEL_BEACON, -+ NL80211_CMD_START_AP, -+ NL80211_CMD_NEW_BEACON = NL80211_CMD_START_AP, -+ NL80211_CMD_STOP_AP, -+ NL80211_CMD_DEL_BEACON = NL80211_CMD_STOP_AP, - - NL80211_CMD_GET_STATION, - NL80211_CMD_SET_STATION, -@@ -680,6 +694,8 @@ enum nl80211_commands { - - NL80211_CMD_SET_NOACK_MAP, - -+ NL80211_CMD_CH_SWITCH_NOTIFY, -+ - /* add new commands above here */ - - /* used to define NL80211_CMD_MAX below */ -@@ -1193,6 +1209,19 @@ enum nl80211_commands { - * @NL80211_ATTR_NOACK_MAP: This u16 bitmap contains the No Ack Policy of - * up to 16 TIDs. - * -+ * @NL80211_ATTR_INACTIVITY_TIMEOUT: timeout value in seconds, this can be -+ * used by the drivers which has MLME in firmware and does not have support -+ * to report per station tx/rx activity to free up the staion entry from -+ * the list. This needs to be used when the driver advertises the -+ * capability to timeout the stations. -+ * -+ * @NL80211_ATTR_RX_SIGNAL_DBM: signal strength in dBm (as a 32-bit int); -+ * this attribute is (depending on the driver capabilities) added to -+ * received frames indicated with %NL80211_CMD_FRAME. -+ * -+ * @NL80211_ATTR_BG_SCAN_PERIOD: Background scan period in seconds -+ * or 0 to disable background scan. -+ * - * @NL80211_ATTR_MAX: highest attribute number currently defined - * @__NL80211_ATTR_AFTER_LAST: internal use - */ -@@ -1438,6 +1467,12 @@ enum nl80211_attrs { - - NL80211_ATTR_NOACK_MAP, - -+ NL80211_ATTR_INACTIVITY_TIMEOUT, -+ -+ NL80211_ATTR_RX_SIGNAL_DBM, -+ -+ NL80211_ATTR_BG_SCAN_PERIOD, -+ - /* add attributes here, update the policy in nl80211.c */ - - __NL80211_ATTR_AFTER_LAST, -@@ -1475,6 +1510,7 @@ enum nl80211_attrs { - #define NL80211_ATTR_FEATURE_FLAGS NL80211_ATTR_FEATURE_FLAGS - - #define NL80211_MAX_SUPP_RATES 32 -+#define NL80211_MAX_SUPP_HT_RATES 77 - #define NL80211_MAX_SUPP_REG_RULES 32 - #define NL80211_TKIP_DATA_OFFSET_ENCR_KEY 0 - #define NL80211_TKIP_DATA_OFFSET_TX_MIC_KEY 16 -@@ -1536,7 +1572,11 @@ enum nl80211_iftype { - * @NL80211_STA_FLAG_WME: station is WME/QoS capable - * @NL80211_STA_FLAG_MFP: station uses management frame protection - * @NL80211_STA_FLAG_AUTHENTICATED: station is authenticated -- * @NL80211_STA_FLAG_TDLS_PEER: station is a TDLS peer -+ * @NL80211_STA_FLAG_TDLS_PEER: station is a TDLS peer -- this flag should -+ * only be used in managed mode (even in the flags mask). Note that the -+ * flag can't be changed, it is only valid while adding a station, and -+ * attempts to change it will silently be ignored (rather than rejected -+ * as errors.) - * @NL80211_STA_FLAG_MAX: highest station flag number currently defined - * @__NL80211_STA_FLAG_AFTER_LAST: internal use - */ -@@ -1651,6 +1691,10 @@ enum nl80211_sta_bss_param { - * containing info as possible, see &enum nl80211_sta_bss_param - * @NL80211_STA_INFO_CONNECTED_TIME: time since the station is last connected - * @NL80211_STA_INFO_STA_FLAGS: Contains a struct nl80211_sta_flag_update. -+ * @NL80211_STA_INFO_BEACON_LOSS: count of times beacon loss was detected (u32) -+ * @NL80211_STA_INFO_T_OFFSET: timing offset with respect to this STA (s64) -+ * @NL80211_STA_INFO_CHAIN_SIGNAL: per-chain signal strength of last PPDU -+ * @NL80211_STA_INFO_CHAIN_SIGNAL_AVG: per-chain signal strength average - * @__NL80211_STA_INFO_AFTER_LAST: internal - * @NL80211_STA_INFO_MAX: highest possible station info attribute - */ -@@ -1673,6 +1717,10 @@ enum nl80211_sta_info { - NL80211_STA_INFO_BSS_PARAM, - NL80211_STA_INFO_CONNECTED_TIME, - NL80211_STA_INFO_STA_FLAGS, -+ NL80211_STA_INFO_BEACON_LOSS, -+ NL80211_STA_INFO_T_OFFSET, -+ NL80211_STA_INFO_CHAIN_SIGNAL, -+ NL80211_STA_INFO_CHAIN_SIGNAL_AVG, - - /* keep last */ - __NL80211_STA_INFO_AFTER_LAST, -@@ -2098,8 +2146,18 @@ enum nl80211_mntr_flags { - * TUs) during which a mesh STA can send only one Action frame containing a - * PERR element. - * -+ * @NL80211_MESHCONF_FORWARDING: set Mesh STA as forwarding or non-forwarding -+ * or forwarding entity (default is TRUE - forwarding entity) -+ * -+ * @NL80211_MESHCONF_RSSI_THRESHOLD: RSSI threshold in dBm. This specifies the -+ * threshold for average signal strength of candidate station to establish -+ * a peer link. -+ * - * @NL80211_MESHCONF_ATTR_MAX: highest possible mesh configuration attribute - * -+ * @NL80211_MESHCONF_SYNC_OFFSET_MAX_NEIGHBOR: maximum number of neighbors -+ * to synchronize to for 11s default synchronization method (see 11C.12.2.2) -+ * - * @__NL80211_MESHCONF_ATTR_AFTER_LAST: internal use - */ - enum nl80211_meshconf_params { -@@ -2122,6 +2180,9 @@ enum nl80211_meshconf_params { - NL80211_MESHCONF_HWMP_RANN_INTERVAL, - NL80211_MESHCONF_GATE_ANNOUNCEMENTS, - NL80211_MESHCONF_HWMP_PERR_MIN_INTERVAL, -+ NL80211_MESHCONF_FORWARDING, -+ NL80211_MESHCONF_RSSI_THRESHOLD, -+ NL80211_MESHCONF_SYNC_OFFSET_MAX_NEIGHBOR, - - /* keep last */ - __NL80211_MESHCONF_ATTR_AFTER_LAST, -@@ -2161,6 +2222,11 @@ enum nl80211_meshconf_params { - * complete (unsecured) mesh peering without the need of a userspace daemon. - * - * @NL80211_MESH_SETUP_ATTR_MAX: highest possible mesh setup attribute number -+ * -+ * @NL80211_MESH_SETUP_ENABLE_VENDOR_SYNC: Enable this option to use a -+ * vendor specific synchronization method or disable it to use the default -+ * neighbor offset synchronization -+ * - * @__NL80211_MESH_SETUP_ATTR_AFTER_LAST: Internal use - */ - enum nl80211_mesh_setup_params { -@@ -2170,6 +2236,7 @@ enum nl80211_mesh_setup_params { - NL80211_MESH_SETUP_IE, - NL80211_MESH_SETUP_USERSPACE_AUTH, - NL80211_MESH_SETUP_USERSPACE_AMPE, -+ NL80211_MESH_SETUP_ENABLE_VENDOR_SYNC, - - /* keep last */ - __NL80211_MESH_SETUP_ATTR_AFTER_LAST, -@@ -2179,7 +2246,7 @@ enum nl80211_mesh_setup_params { - /** - * enum nl80211_txq_attr - TX queue parameter attributes - * @__NL80211_TXQ_ATTR_INVALID: Attribute number 0 is reserved -- * @NL80211_TXQ_ATTR_QUEUE: TX queue identifier (NL80211_TXQ_Q_*) -+ * @NL80211_TXQ_ATTR_AC: AC identifier (NL80211_AC_*) - * @NL80211_TXQ_ATTR_TXOP: Maximum burst time in units of 32 usecs, 0 meaning - * disabled - * @NL80211_TXQ_ATTR_CWMIN: Minimum contention window [a value of the form -@@ -2192,7 +2259,7 @@ enum nl80211_mesh_setup_params { - */ - enum nl80211_txq_attr { - __NL80211_TXQ_ATTR_INVALID, -- NL80211_TXQ_ATTR_QUEUE, -+ NL80211_TXQ_ATTR_AC, - NL80211_TXQ_ATTR_TXOP, - NL80211_TXQ_ATTR_CWMIN, - NL80211_TXQ_ATTR_CWMAX, -@@ -2203,13 +2270,21 @@ enum nl80211_txq_attr { - NL80211_TXQ_ATTR_MAX = __NL80211_TXQ_ATTR_AFTER_LAST - 1 - }; - --enum nl80211_txq_q { -- NL80211_TXQ_Q_VO, -- NL80211_TXQ_Q_VI, -- NL80211_TXQ_Q_BE, -- NL80211_TXQ_Q_BK -+enum nl80211_ac { -+ NL80211_AC_VO, -+ NL80211_AC_VI, -+ NL80211_AC_BE, -+ NL80211_AC_BK, -+ NL80211_NUM_ACS - }; - -+/* backward compat */ -+#define NL80211_TXQ_ATTR_QUEUE NL80211_TXQ_ATTR_AC -+#define NL80211_TXQ_Q_VO NL80211_AC_VO -+#define NL80211_TXQ_Q_VI NL80211_AC_VI -+#define NL80211_TXQ_Q_BE NL80211_AC_BE -+#define NL80211_TXQ_Q_BK NL80211_AC_BK -+ - enum nl80211_channel_type { - NL80211_CHAN_NO_HT, - NL80211_CHAN_HT20, -@@ -2395,12 +2470,15 @@ enum nl80211_key_attributes { - * in an array of rates as defined in IEEE 802.11 7.3.2.2 (u8 values with - * 1 = 500 kbps) but without the IE length restriction (at most - * %NL80211_MAX_SUPP_RATES in a single array). -+ * @NL80211_TXRATE_MCS: HT (MCS) rates allowed for TX rate selection -+ * in an array of MCS numbers. - * @__NL80211_TXRATE_AFTER_LAST: internal - * @NL80211_TXRATE_MAX: highest TX rate attribute - */ - enum nl80211_tx_rate_attributes { - __NL80211_TXRATE_INVALID, - NL80211_TXRATE_LEGACY, -+ NL80211_TXRATE_MCS, - - /* keep last */ - __NL80211_TXRATE_AFTER_LAST, -@@ -2786,10 +2864,13 @@ enum nl80211_ap_sme_features { - * TX status to the socket error queue when requested with the - * socket option. - * @NL80211_FEATURE_HT_IBSS: This driver supports IBSS with HT datarates. -+ * @NL80211_FEATURE_INACTIVITY_TIMER: This driver takes care of freeing up -+ * the connected inactive stations in AP mode. - */ - enum nl80211_feature_flags { - NL80211_FEATURE_SK_TX_STATUS = 1 << 0, - NL80211_FEATURE_HT_IBSS = 1 << 1, -+ NL80211_FEATURE_INACTIVITY_TIMER = 1 << 2, - }; - - /** diff --git a/package/iw/patches/100-rx_rate.patch b/package/iw/patches/100-rx_rate.patch deleted file mode 100644 index 780a7d439..000000000 --- a/package/iw/patches/100-rx_rate.patch +++ /dev/null @@ -1,97 +0,0 @@ ---- a/station.c -+++ b/station.c -@@ -29,13 +29,43 @@ enum plink_actions { - PLINK_ACTION_BLOCK, - }; - -+static void print_sta_bitrate(struct nlattr *nla, const char *name) -+{ -+ struct nlattr *rinfo[NL80211_RATE_INFO_MAX + 1]; -+ -+ static struct nla_policy rate_policy[NL80211_RATE_INFO_MAX + 1] = { -+ [NL80211_RATE_INFO_BITRATE] = { .type = NLA_U16 }, -+ [NL80211_RATE_INFO_MCS] = { .type = NLA_U8 }, -+ [NL80211_RATE_INFO_40_MHZ_WIDTH] = { .type = NLA_FLAG }, -+ [NL80211_RATE_INFO_SHORT_GI] = { .type = NLA_FLAG }, -+ }; -+ -+ if (!nla) -+ return; -+ -+ if (nla_parse_nested(rinfo, NL80211_RATE_INFO_MAX, nla, rate_policy)) { -+ fprintf(stderr, "failed to parse nested rate attributes!\n"); -+ } else { -+ printf("\n\t%s:\t", name); -+ if (rinfo[NL80211_RATE_INFO_BITRATE]) { -+ int rate = nla_get_u16(rinfo[NL80211_RATE_INFO_BITRATE]); -+ printf("%d.%d MBit/s", rate / 10, rate % 10); -+ } -+ -+ if (rinfo[NL80211_RATE_INFO_MCS]) -+ printf(" MCS %d", nla_get_u8(rinfo[NL80211_RATE_INFO_MCS])); -+ if (rinfo[NL80211_RATE_INFO_40_MHZ_WIDTH]) -+ printf(" 40Mhz"); -+ if (rinfo[NL80211_RATE_INFO_SHORT_GI]) -+ printf(" short GI"); -+ } -+} - - static int print_sta_handler(struct nl_msg *msg, void *arg) - { - struct nlattr *tb[NL80211_ATTR_MAX + 1]; - struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); - struct nlattr *sinfo[NL80211_STA_INFO_MAX + 1]; -- struct nlattr *rinfo[NL80211_RATE_INFO_MAX + 1]; - char mac_addr[20], state_name[10], dev[20]; - struct nl80211_sta_flag_update *sta_flags; - static struct nla_policy stats_policy[NL80211_STA_INFO_MAX + 1] = { -@@ -46,6 +76,7 @@ static int print_sta_handler(struct nl_m - [NL80211_STA_INFO_TX_PACKETS] = { .type = NLA_U32 }, - [NL80211_STA_INFO_SIGNAL] = { .type = NLA_U8 }, - [NL80211_STA_INFO_TX_BITRATE] = { .type = NLA_NESTED }, -+ [NL80211_STA_INFO_RX_BITRATE] = { .type = NLA_NESTED }, - [NL80211_STA_INFO_LLID] = { .type = NLA_U16 }, - [NL80211_STA_INFO_PLID] = { .type = NLA_U16 }, - [NL80211_STA_INFO_PLINK_STATE] = { .type = NLA_U8 }, -@@ -55,13 +86,6 @@ static int print_sta_handler(struct nl_m - { .minlen = sizeof(struct nl80211_sta_flag_update) }, - }; - -- static struct nla_policy rate_policy[NL80211_RATE_INFO_MAX + 1] = { -- [NL80211_RATE_INFO_BITRATE] = { .type = NLA_U16 }, -- [NL80211_RATE_INFO_MCS] = { .type = NLA_U8 }, -- [NL80211_RATE_INFO_40_MHZ_WIDTH] = { .type = NLA_FLAG }, -- [NL80211_RATE_INFO_SHORT_GI] = { .type = NLA_FLAG }, -- }; -- - nla_parse(tb, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), - genlmsg_attrlen(gnlh, 0), NULL); - -@@ -114,25 +138,8 @@ static int print_sta_handler(struct nl_m - printf("\n\tsignal avg:\t%d dBm", - (int8_t)nla_get_u8(sinfo[NL80211_STA_INFO_SIGNAL_AVG])); - -- if (sinfo[NL80211_STA_INFO_TX_BITRATE]) { -- if (nla_parse_nested(rinfo, NL80211_RATE_INFO_MAX, -- sinfo[NL80211_STA_INFO_TX_BITRATE], rate_policy)) { -- fprintf(stderr, "failed to parse nested rate attributes!\n"); -- } else { -- printf("\n\ttx bitrate:\t"); -- if (rinfo[NL80211_RATE_INFO_BITRATE]) { -- int rate = nla_get_u16(rinfo[NL80211_RATE_INFO_BITRATE]); -- printf("%d.%d MBit/s", rate / 10, rate % 10); -- } -- -- if (rinfo[NL80211_RATE_INFO_MCS]) -- printf(" MCS %d", nla_get_u8(rinfo[NL80211_RATE_INFO_MCS])); -- if (rinfo[NL80211_RATE_INFO_40_MHZ_WIDTH]) -- printf(" 40Mhz"); -- if (rinfo[NL80211_RATE_INFO_SHORT_GI]) -- printf(" short GI"); -- } -- } -+ print_sta_bitrate(sinfo[NL80211_STA_INFO_TX_BITRATE], "tx bitrate"); -+ print_sta_bitrate(sinfo[NL80211_STA_INFO_RX_BITRATE], "rx bitrate"); - - if (sinfo[NL80211_STA_INFO_LLID]) - printf("\n\tmesh llid:\t%d", diff --git a/package/iw/patches/110-per_chain_signal_strength.patch b/package/iw/patches/110-per_chain_signal_strength.patch deleted file mode 100644 index 0bc560792..000000000 --- a/package/iw/patches/110-per_chain_signal_strength.patch +++ /dev/null @@ -1,70 +0,0 @@ ---- a/station.c -+++ b/station.c -@@ -61,6 +61,33 @@ static void print_sta_bitrate(struct nla - } - } - -+static char *get_chain_signal(struct nlattr *attr_list) -+{ -+ struct nlattr *attr; -+ static char buf[64]; -+ char *cur = buf; -+ int i = 0, rem; -+ const char *prefix; -+ -+ if (!attr_list) -+ return ""; -+ -+ nla_for_each_nested(attr, attr_list, rem) { -+ if (i++ > 0) -+ prefix = ", "; -+ else -+ prefix = "["; -+ -+ cur += snprintf(cur, sizeof(buf) - (cur - buf), "%s%d", prefix, -+ (int8_t) nla_get_u8(attr)); -+ } -+ -+ if (i) -+ snprintf(cur, sizeof(buf) - (cur - buf), "] "); -+ -+ return buf; -+} -+ - static int print_sta_handler(struct nl_msg *msg, void *arg) - { - struct nlattr *tb[NL80211_ATTR_MAX + 1]; -@@ -84,7 +111,10 @@ static int print_sta_handler(struct nl_m - [NL80211_STA_INFO_TX_FAILED] = { .type = NLA_U32 }, - [NL80211_STA_INFO_STA_FLAGS] = - { .minlen = sizeof(struct nl80211_sta_flag_update) }, -+ [NL80211_STA_INFO_CHAIN_SIGNAL] = { .type = NLA_NESTED }, -+ [NL80211_STA_INFO_CHAIN_SIGNAL_AVG] = { .type = NLA_NESTED }, - }; -+ char *chain; - - nla_parse(tb, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), - genlmsg_attrlen(gnlh, 0), NULL); -@@ -131,12 +161,18 @@ static int print_sta_handler(struct nl_m - if (sinfo[NL80211_STA_INFO_TX_FAILED]) - printf("\n\ttx failed:\t%u", - nla_get_u32(sinfo[NL80211_STA_INFO_TX_FAILED])); -+ -+ chain = get_chain_signal(sinfo[NL80211_STA_INFO_CHAIN_SIGNAL]); - if (sinfo[NL80211_STA_INFO_SIGNAL]) -- printf("\n\tsignal: \t%d dBm", -- (int8_t)nla_get_u8(sinfo[NL80211_STA_INFO_SIGNAL])); -+ printf("\n\tsignal: \t%d %sdBm", -+ (int8_t)nla_get_u8(sinfo[NL80211_STA_INFO_SIGNAL]), -+ chain); -+ -+ chain = get_chain_signal(sinfo[NL80211_STA_INFO_CHAIN_SIGNAL_AVG]); - if (sinfo[NL80211_STA_INFO_SIGNAL_AVG]) -- printf("\n\tsignal avg:\t%d dBm", -- (int8_t)nla_get_u8(sinfo[NL80211_STA_INFO_SIGNAL_AVG])); -+ printf("\n\tsignal avg:\t%d %sdBm", -+ (int8_t)nla_get_u8(sinfo[NL80211_STA_INFO_SIGNAL_AVG]), -+ chain); - - print_sta_bitrate(sinfo[NL80211_STA_INFO_TX_BITRATE], "tx bitrate"); - print_sta_bitrate(sinfo[NL80211_STA_INFO_RX_BITRATE], "rx bitrate"); diff --git a/package/iw/patches/120-tdls_peer_indentation.patch b/package/iw/patches/120-tdls_peer_indentation.patch deleted file mode 100644 index 937b9dd3d..000000000 --- a/package/iw/patches/120-tdls_peer_indentation.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/station.c -+++ b/station.c -@@ -258,7 +258,7 @@ static int print_sta_handler(struct nl_m - } - - if (sta_flags->mask & BIT(NL80211_STA_FLAG_TDLS_PEER)) { -- printf("\n\tTDLS peer:\t\t"); -+ printf("\n\tTDLS peer:\t"); - if (sta_flags->set & BIT(NL80211_STA_FLAG_TDLS_PEER)) - printf("yes"); - else |