@ -37,7 +37,7 @@
case NL80211_CMD_JOIN_IBSS:
mac_addr_n2a(macbuf, nla_data(tb[NL80211_ATTR_MAC]));
printf("IBSS %s joined\n", macbuf);
@@ -610,9 +613 ,9 @@ static int print_event(struct nl_msg *ms
@@ -612,9 +615 ,9 @@ static int print_event(struct nl_msg *ms
case NL80211_CMD_DEL_WIPHY:
printf("delete wiphy\n");
break;
@ -51,7 +51,7 @@
--- a/info.c
+++ b/info.c
@@ -2 17,6 +2 17,7 @@ next:
@@ -19 7,6 +19 7,7 @@ next:
}
}
@ -59,7 +59,7 @@
if (tb_band[NL80211_BAND_ATTR_RATES]) {
printf("\t\tBitrates (non-HT):\n");
nla_for_each_nested(nl_rate, tb_band[NL80211_BAND_ATTR_RATES], rem_rate) {
@@ -233,6 +23 4,7 @@ next:
@@ -213,6 +21 4,7 @@ next:
printf("\n");
}
}
@ -67,7 +67,7 @@
}
}
@@ -298,6 +30 0,7 @@ next:
@@ -278,6 +28 0,7 @@ next:
printf("\tCoverage class: %d (up to %dm)\n", coverage, 450 * coverage);
}
@ -75,7 +75,7 @@
if (tb_msg[NL80211_ATTR_CIPHER_SUITES]) {
int num = nla_len(tb_msg[NL80211_ATTR_CIPHER_SUITES]) / sizeof(__u32);
int i;
@@ -309,6 +31 2,7 @@ next:
@@ -289,6 +29 2,7 @@ next:
cipher_name(ciphers[i]));
}
}
@ -83,7 +83,7 @@
if (tb_msg[NL80211_ATTR_WIPHY_ANTENNA_AVAIL_TX] &&
tb_msg[NL80211_ATTR_WIPHY_ANTENNA_AVAIL_RX])
@@ -328,11 +33 2,13 @@ next:
@@ -308,11 +31 2,13 @@ next:
printf("\t\t * %s\n", iftype_name(nla_type(nl_mode)));
}
@ -97,7 +97,7 @@
if (tb_msg[NL80211_ATTR_INTERFACE_COMBINATIONS]) {
struct nlattr *nl_combi;
@@ -429,6 +43 5,7 @@ broken_combination:
@@ -409,6 +41 5,7 @@ broken_combination:
printf("\tinterface combinations are not supported\n");
}
@ -105,7 +105,7 @@
if (tb_msg[NL80211_ATTR_SUPPORTED_COMMANDS]) {
printf("\tSupported commands:\n");
nla_for_each_nested(nl_cmd, tb_msg[NL80211_ATTR_SUPPORTED_COMMANDS], rem_cmd)
@@ -526,6 +53 3,7 @@ broken_combination:
@@ -506,6 +51 3,7 @@ broken_combination:
printf("\t\t * wake up on TCP connection\n");
}
}
@ -113,7 +113,7 @@
if (tb_msg[NL80211_ATTR_ROAM_SUPPORT])
printf("\tDevice supports roaming.\n");
@@ -564,6 +57 2,7 @@ broken_combination:
@@ -544,6 +55 2,7 @@ broken_combination:
}
}
@ -121,7 +121,7 @@
if (tb_msg[NL80211_ATTR_FEATURE_FLAGS]) {
unsigned int features = nla_get_u32(tb_msg[NL80211_ATTR_FEATURE_FLAGS]);
@@ -622,6 +63 1,7 @@ broken_combination:
@@ -602,6 +61 1,7 @@ broken_combination:
if (features & NL80211_FEATURE_TDLS_CHANNEL_SWITCH)
printf("\tDevice supports TDLS channel switching\n");
}
@ -129,7 +129,7 @@
if (tb_msg[NL80211_ATTR_EXT_FEATURES]) {
struct nlattr *tb = tb_msg[NL80211_ATTR_EXT_FEATURES];
@@ -678,6 +68 8,7 @@ TOPLEVEL(list, NULL, NL80211_CMD_GET_WIP
@@ -658,6 +66 8,7 @@ TOPLEVEL(list, NULL, NL80211_CMD_GET_WIP
"List all wireless devices and their capabilities.");
TOPLEVEL(phy, NULL, NL80211_CMD_GET_WIPHY, NLM_F_DUMP, CIB_NONE, handle_info, NULL);
@ -137,7 +137,7 @@
static int handle_commands(struct nl80211_state *state, struct nl_msg *msg,
int argc, char **argv, enum id_input id)
{
@@ -689,6 +70 0,7 @@ static int handle_commands(struct nl8021
@@ -669,6 +68 0,7 @@ static int handle_commands(struct nl8021
}
TOPLEVEL(commands, NULL, NL80211_CMD_GET_WIPHY, 0, CIB_NONE, handle_commands,
"list all known commands and their decimal & hex value");
@ -237,7 +237,7 @@
printf("\tbeacon interval: %d TUs\n",
--- a/util.c
+++ b/util.c
@@ -268,6 +268 ,7 @@ static const char *commands[NL80211_CMD_
@@ -275,6 +275 ,7 @@ static const char *commands[NL80211_CMD_
static char cmdbuf[100];
@ -245,7 +245,7 @@
const char *command_name(enum nl80211_commands cmd)
{
if (cmd <= NL80211_CMD_MAX && commands[cmd])
@@ -275,6 +276 ,7 @@ const char *command_name(enum nl80211_co
@@ -282,6 +283 ,7 @@ const char *command_name(enum nl80211_co
sprintf(cmdbuf, "Unknown command (%d)", cmd);
return cmdbuf;
}