iw: update to 3.15
[openwrt.git] / package / network / utils / iw / patches / 200-reduce_size.patch
1 --- a/Makefile
2 +++ b/Makefile
3 @@ -15,8 +15,8 @@ CFLAGS += -Wall -Wundef -Wstrict-prototy
4  OBJS = iw.o genl.o event.o info.o phy.o \
5         interface.o ibss.o station.o survey.o util.o \
6         mesh.o mpath.o scan.o reg.o version.o \
7 -       reason.o status.o connect.o link.o offch.o ps.o cqm.o \
8 -       bitrate.o wowlan.o coalesce.o roc.o p2p.o
9 +       reason.o status.o connect.o link.o ps.o \
10 +       bitrate.o
11  OBJS += sections.o
12  
13  OBJS-$(HWSIM) += hwsim.o
14 --- a/info.c
15 +++ b/info.c
16 @@ -207,6 +207,7 @@ next:
17                                 }
18                         }
19  
20 +#if 0
21                         if (tb_band[NL80211_BAND_ATTR_RATES]) {
22                         printf("\t\tBitrates (non-HT):\n");
23                         nla_for_each_nested(nl_rate, tb_band[NL80211_BAND_ATTR_RATES], rem_rate) {
24 @@ -223,6 +224,7 @@ next:
25                                 printf("\n");
26                         }
27                         }
28 +#endif
29                 }
30         }
31  
32 @@ -273,6 +275,7 @@ next:
33                 printf("\tCoverage class: %d (up to %dm)\n", coverage, 450 * coverage);
34         }
35  
36 +#if 0
37         if (tb_msg[NL80211_ATTR_CIPHER_SUITES]) {
38                 int num = nla_len(tb_msg[NL80211_ATTR_CIPHER_SUITES]) / sizeof(__u32);
39                 int i;
40 @@ -284,6 +287,7 @@ next:
41                                         cipher_name(ciphers[i]));
42                 }
43         }
44 +#endif
45  
46         if (tb_msg[NL80211_ATTR_WIPHY_ANTENNA_AVAIL_TX] &&
47             tb_msg[NL80211_ATTR_WIPHY_ANTENNA_AVAIL_RX])
48 @@ -303,11 +307,13 @@ next:
49                         printf("\t\t * %s\n", iftype_name(nla_type(nl_mode)));
50         }
51  
52 +#if 0
53         if (tb_msg[NL80211_ATTR_SOFTWARE_IFTYPES]) {
54                 printf("\tsoftware interface modes (can always be added):\n");
55                 nla_for_each_nested(nl_mode, tb_msg[NL80211_ATTR_SOFTWARE_IFTYPES], rem_mode)
56                         printf("\t\t * %s\n", iftype_name(nla_type(nl_mode)));
57         }
58 +#endif
59  
60         if (tb_msg[NL80211_ATTR_INTERFACE_COMBINATIONS]) {
61                 struct nlattr *nl_combi;
62 @@ -404,6 +410,7 @@ broken_combination:
63                         printf("\tinterface combinations are not supported\n");
64         }
65  
66 +#if 0
67         if (tb_msg[NL80211_ATTR_SUPPORTED_COMMANDS]) {
68                 printf("\tSupported commands:\n");
69                 nla_for_each_nested(nl_cmd, tb_msg[NL80211_ATTR_SUPPORTED_COMMANDS], rem_cmd)
70 @@ -496,6 +503,7 @@ broken_combination:
71                                 printf("\t\t * wake up on TCP connection\n");
72                 }
73         }
74 +#endif
75  
76         if (tb_msg[NL80211_ATTR_ROAM_SUPPORT])
77                 printf("\tDevice supports roaming.\n");
78 @@ -532,6 +540,7 @@ broken_combination:
79                 }
80         }
81  
82 +#if 0
83         if (tb_msg[NL80211_ATTR_FEATURE_FLAGS]) {
84                 unsigned int features = nla_get_u32(tb_msg[NL80211_ATTR_FEATURE_FLAGS]);
85  
86 @@ -552,6 +561,7 @@ broken_combination:
87                 if (features & NL80211_FEATURE_AP_SCAN)
88                         printf("\tDevice supports AP scan.\n");
89         }
90 +#endif
91  
92         if (tb_msg[NL80211_ATTR_TDLS_SUPPORT])
93                 printf("\tDevice supports T-DLS.\n");
94 @@ -601,6 +611,7 @@ TOPLEVEL(list, NULL, NL80211_CMD_GET_WIP
95          "List all wireless devices and their capabilities.");
96  TOPLEVEL(phy, NULL, NL80211_CMD_GET_WIPHY, NLM_F_DUMP, CIB_NONE, handle_info, NULL);
97  
98 +#if 0
99  static int handle_commands(struct nl80211_state *state,
100                            struct nl_cb *cb, struct nl_msg *msg,
101                            int argc, char **argv, enum id_input id)
102 @@ -613,6 +624,7 @@ static int handle_commands(struct nl8021
103  }
104  TOPLEVEL(commands, NULL, NL80211_CMD_GET_WIPHY, 0, CIB_NONE, handle_commands,
105          "list all known commands and their decimal & hex value");
106 +#endif
107  
108  static int print_feature_handler(struct nl_msg *msg, void *arg)
109  {