iw: update to version 4.1
[openwrt/staging/dedeckeh.git] / package / network / utils / iw / patches / 200-reduce_size.patch
1 --- a/Makefile
2 +++ b/Makefile
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
8 + bitrate.o vendor.o
9 OBJS += sections.o
10
11 OBJS-$(HWSIM) += hwsim.o
12 --- a/info.c
13 +++ b/info.c
14 @@ -219,6 +219,7 @@ next:
15 }
16 }
17
18 +#if 0
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:
23 printf("\n");
24 }
25 }
26 +#endif
27 }
28 }
29
30 @@ -291,6 +293,7 @@ next:
31 printf("\tCoverage class: %d (up to %dm)\n", coverage, 450 * coverage);
32 }
33
34 +#if 0
35 if (tb_msg[NL80211_ATTR_CIPHER_SUITES]) {
36 int num = nla_len(tb_msg[NL80211_ATTR_CIPHER_SUITES]) / sizeof(__u32);
37 int i;
38 @@ -302,6 +305,7 @@ next:
39 cipher_name(ciphers[i]));
40 }
41 }
42 +#endif
43
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)));
48 }
49
50 +#if 0
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)));
55 }
56 +#endif
57
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");
62 }
63
64 +#if 0
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");
70 }
71 }
72 +#endif
73
74 if (tb_msg[NL80211_ATTR_ROAM_SUPPORT])
75 printf("\tDevice supports roaming.\n");
76 @@ -554,6 +562,7 @@ broken_combination:
77 }
78 }
79
80 +#if 0
81 if (tb_msg[NL80211_ATTR_FEATURE_FLAGS]) {
82 unsigned int features = nla_get_u32(tb_msg[NL80211_ATTR_FEATURE_FLAGS]);
83
84 @@ -612,6 +621,7 @@ broken_combination:
85 if (features & NL80211_FEATURE_TDLS_CHANNEL_SWITCH)
86 printf("\tDevice supports TDLS channel switching\n");
87 }
88 +#endif
89
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);
95
96 +#if 0
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
101 }
102 TOPLEVEL(commands, NULL, NL80211_CMD_GET_WIPHY, 0, CIB_NONE, handle_commands,
103 "list all known commands and their decimal & hex value");
104 +#endif
105
106 static int print_feature_handler(struct nl_msg *msg, void *arg)
107 {