]> git.ipfire.org Git - thirdparty/iw.git/blobdiff - util.c
iw: display 5/10 MHz channel widths
[thirdparty/iw.git] / util.c
diff --git a/util.c b/util.c
index da3be3260789aa8419a0851152a3a15bc97ff793..dd960e0d27e70045a04c9e9f48aa1e490ad6b376 100644 (file)
--- a/util.c
+++ b/util.c
@@ -148,7 +148,7 @@ const char *iftype_name(enum nl80211_iftype iftype)
 
 static const char *commands[NL80211_CMD_MAX + 1] = {
 /*
- * sed 's/^\tNL80211_CMD_//;t n;d;:n s%^\([^=]*\),.*%\t[NL80211_CMD_\1] = \"\L\1\",%;t;d' nl80211.h
+ * sed 's%^\tNL80211_CMD_%%;t n;d;:n s%^\([^=]*\),.*%\t[NL80211_CMD_\1] = \"\L\1\",%;t;d' nl80211.h | grep -v "reserved"
  */
        [NL80211_CMD_UNSPEC] = "unspec",
        [NL80211_CMD_GET_WIPHY] = "get_wiphy",
@@ -263,6 +263,7 @@ static const char *commands[NL80211_CMD_MAX + 1] = {
        [NL80211_CMD_TDLS_CHANNEL_SWITCH] = "tdls_channel_switch",
        [NL80211_CMD_TDLS_CANCEL_CHANNEL_SWITCH] = "tdls_cancel_channel_switch",
        [NL80211_CMD_WIPHY_REG_CHANGE] = "wiphy_reg_change",
+       [NL80211_CMD_ABORT_SCAN] = "abort_scan",
 };
 
 static char cmdbuf[100];