3 @@ -16,7 +16,7 @@ OBJS = iw.o genl.o event.o info.o phy.o
4 interface.o ibss.o station.o survey.o util.o ocb.o \
5 mesh.o mpath.o mpp.o scan.o reg.o version.o \
6 reason.o status.o connect.o link.o offch.o ps.o cqm.o \
7 - bitrate.o wowlan.o coalesce.o roc.o p2p.o vendor.o
11 OBJS-$(HWSIM) += hwsim.o
14 @@ -219,6 +219,7 @@ next:
19 if (tb_band[NL80211_BAND_ATTR_RATES]) {
20 printf("\t\tBitrates (non-HT):\n");
21 nla_for_each_nested(nl_rate, tb_band[NL80211_BAND_ATTR_RATES], rem_rate) {
22 @@ -235,6 +236,7 @@ next:
30 @@ -291,6 +293,7 @@ next:
31 printf("\tCoverage class: %d (up to %dm)\n", coverage, 450 * coverage);
35 if (tb_msg[NL80211_ATTR_CIPHER_SUITES]) {
36 int num = nla_len(tb_msg[NL80211_ATTR_CIPHER_SUITES]) / sizeof(__u32);
38 @@ -302,6 +305,7 @@ next:
39 cipher_name(ciphers[i]));
44 if (tb_msg[NL80211_ATTR_WIPHY_ANTENNA_AVAIL_TX] &&
45 tb_msg[NL80211_ATTR_WIPHY_ANTENNA_AVAIL_RX])
46 @@ -321,11 +325,13 @@ next:
47 printf("\t\t * %s\n", iftype_name(nla_type(nl_mode)));
51 if (tb_msg[NL80211_ATTR_SOFTWARE_IFTYPES]) {
52 printf("\tsoftware interface modes (can always be added):\n");
53 nla_for_each_nested(nl_mode, tb_msg[NL80211_ATTR_SOFTWARE_IFTYPES], rem_mode)
54 printf("\t\t * %s\n", iftype_name(nla_type(nl_mode)));
58 if (tb_msg[NL80211_ATTR_INTERFACE_COMBINATIONS]) {
59 struct nlattr *nl_combi;
60 @@ -422,6 +428,7 @@ broken_combination:
61 printf("\tinterface combinations are not supported\n");
65 if (tb_msg[NL80211_ATTR_SUPPORTED_COMMANDS]) {
66 printf("\tSupported commands:\n");
67 nla_for_each_nested(nl_cmd, tb_msg[NL80211_ATTR_SUPPORTED_COMMANDS], rem_cmd)
68 @@ -518,6 +525,7 @@ broken_combination:
69 printf("\t\t * wake up on TCP connection\n");
74 if (tb_msg[NL80211_ATTR_ROAM_SUPPORT])
75 printf("\tDevice supports roaming.\n");
76 @@ -554,6 +562,7 @@ broken_combination:
81 if (tb_msg[NL80211_ATTR_FEATURE_FLAGS]) {
82 unsigned int features = nla_get_u32(tb_msg[NL80211_ATTR_FEATURE_FLAGS]);
84 @@ -612,6 +621,7 @@ broken_combination:
85 if (features & NL80211_FEATURE_TDLS_CHANNEL_SWITCH)
86 printf("\tDevice supports TDLS channel switching\n");
90 if (tb_msg[NL80211_ATTR_EXT_FEATURES]) {
91 struct nlattr *tb = tb_msg[NL80211_ATTR_EXT_FEATURES];
92 @@ -669,6 +679,7 @@ TOPLEVEL(list, NULL, NL80211_CMD_GET_WIP
93 "List all wireless devices and their capabilities.");
94 TOPLEVEL(phy, NULL, NL80211_CMD_GET_WIPHY, NLM_F_DUMP, CIB_NONE, handle_info, NULL);
97 static int handle_commands(struct nl80211_state *state,
98 struct nl_cb *cb, struct nl_msg *msg,
99 int argc, char **argv, enum id_input id)
100 @@ -681,6 +692,7 @@ static int handle_commands(struct nl8021
102 TOPLEVEL(commands, NULL, NL80211_CMD_GET_WIPHY, 0, CIB_NONE, handle_commands,
103 "list all known commands and their decimal & hex value");
106 static int print_feature_handler(struct nl_msg *msg, void *arg)