libipfix: specify the number of the wprobe ie append script on the command line
[openwrt.git] / package / wireless-tools / patches / 003-we_essential_def.patch
1 --- a/iwlist.c
2 +++ b/iwlist.c
3 @@ -1302,7 +1302,6 @@ print_pm_info(int skfd,
4 return(0);
5 }
6
7 -#ifndef WE_ESSENTIAL
8 /************************** TRANSMIT POWER **************************/
9
10 /*------------------------------------------------------------------*/
11 @@ -1405,6 +1404,7 @@ print_txpower_info(int skfd,
12 return(0);
13 }
14
15 +#ifndef WE_ESSENTIAL
16 /*********************** RETRY LIMIT/LIFETIME ***********************/
17
18 /*------------------------------------------------------------------*/
19 @@ -2060,8 +2060,8 @@ static const struct iwlist_entry iwlist_
20 { "encryption", print_keys_info, 0, NULL },
21 { "keys", print_keys_info, 0, NULL },
22 { "power", print_pm_info, 0, NULL },
23 -#ifndef WE_ESSENTIAL
24 { "txpower", print_txpower_info, 0, NULL },
25 +#ifndef WE_ESSENTIAL
26 { "retry", print_retry_info, 0, NULL },
27 { "ap", print_ap_info, 0, NULL },
28 { "accesspoints", print_ap_info, 0, NULL },
29 --- a/iwconfig.c
30 +++ b/iwconfig.c
31 @@ -106,16 +106,6 @@ get_info(int skfd,
32 if(wrq.u.data.length > 1)
33 info->has_nickname = 1;
34
35 - if((info->has_range) && (info->range.we_version_compiled > 9))
36 - {
37 - /* Get Transmit Power */
38 - if(iw_get_ext(skfd, ifname, SIOCGIWTXPOW, &wrq) >= 0)
39 - {
40 - info->has_txpower = 1;
41 - memcpy(&(info->txpower), &(wrq.u.txpower), sizeof(iwparam));
42 - }
43 - }
44 -
45 /* Get sensitivity */
46 if(iw_get_ext(skfd, ifname, SIOCGIWSENS, &wrq) >= 0)
47 {
48 @@ -132,6 +122,17 @@ get_info(int skfd,
49 memcpy(&(info->retry), &(wrq.u.retry), sizeof(iwparam));
50 }
51 }
52 +#endif /* WE_ESSENTIAL */
53 +
54 + if((info->has_range) && (info->range.we_version_compiled > 9))
55 + {
56 + /* Get Transmit Power */
57 + if(iw_get_ext(skfd, ifname, SIOCGIWTXPOW, &wrq) >= 0)
58 + {
59 + info->has_txpower = 1;
60 + memcpy(&(info->txpower), &(wrq.u.txpower), sizeof(iwparam));
61 + }
62 + }
63
64 /* Get RTS threshold */
65 if(iw_get_ext(skfd, ifname, SIOCGIWRTS, &wrq) >= 0)
66 @@ -146,7 +147,6 @@ get_info(int skfd,
67 info->has_frag = 1;
68 memcpy(&(info->frag), &(wrq.u.frag), sizeof(iwparam));
69 }
70 -#endif /* WE_ESSENTIAL */
71
72 return(0);
73 }
74 @@ -269,7 +269,6 @@ display_info(struct wireless_info * info
75 printf("Bit Rate%c%s ", (info->bitrate.fixed ? '=' : ':'), buffer);
76 }
77
78 -#ifndef WE_ESSENTIAL
79 /* Display the Transmit Power */
80 if(info->has_txpower)
81 {
82 @@ -286,6 +285,7 @@ display_info(struct wireless_info * info
83 printf("Tx-Power%c%s ", (info->txpower.fixed ? '=' : ':'), buffer);
84 }
85
86 +#ifndef WE_ESSENTIAL
87 /* Display sensitivity */
88 if(info->has_sens)
89 {
90 @@ -340,6 +340,7 @@ display_info(struct wireless_info * info
91 printf(" ");
92 tokens += 5; /* Between 3 and 5, depend on flags */
93 }
94 +#endif /* WE_ESSENTIAL */
95
96 /* Display the RTS threshold */
97 if(info->has_rts)
98 @@ -383,7 +384,6 @@ display_info(struct wireless_info * info
99 /* Formating */
100 if(tokens > 0)
101 printf("\n ");
102 -#endif /* WE_ESSENTIAL */
103
104 /* Display encryption information */
105 /* Note : we display only the "current" key, use iwlist to list all keys */
106 @@ -1196,6 +1196,7 @@ set_nwid_info(int skfd,
107 /* 1 arg */
108 return(1);
109 }
110 +#endif /* WE_ESSENTIAL */
111
112 /*------------------------------------------------------------------*/
113 /*
114 @@ -1362,6 +1363,7 @@ set_txpower_info(int skfd,
115 return(i);
116 }
117
118 +#ifndef WE_ESSENTIAL
119 /*------------------------------------------------------------------*/
120 /*
121 * Set Sensitivity
122 @@ -1459,6 +1461,7 @@ set_retry_info(int skfd,
123 /* Var args */
124 return(i);
125 }
126 +#endif /* WE_ESSENTIAL */
127
128 /*------------------------------------------------------------------*/
129 /*
130 @@ -1565,6 +1568,7 @@ set_frag_info(int skfd,
131 return(1);
132 }
133
134 +#ifndef WE_ESSENTIAL
135 /*------------------------------------------------------------------*/
136 /*
137 * Set Modulation
138 @@ -1719,21 +1723,21 @@ static const struct iwconfig_entry iwcon
139 "Set Nickname", "NNN" },
140 { "nwid", set_nwid_info, 1, SIOCSIWNWID,
141 "Set NWID", "{NN|on|off}" },
142 - { "ap", set_apaddr_info, 1, SIOCSIWAP,
143 - "Set AP Address", "{N|off|auto}" },
144 - { "txpower", set_txpower_info, 1, SIOCSIWTXPOW,
145 - "Set Tx Power", "{NmW|NdBm|off|auto}" },
146 { "sens", set_sens_info, 1, SIOCSIWSENS,
147 "Set Sensitivity", "N" },
148 + { "modulation", set_modulation_info, 1, SIOCGIWMODUL,
149 + "Set Modulation", "{11g|11a|CCK|OFDMg|...}" },
150 { "retry", set_retry_info, 1, SIOCSIWRETRY,
151 "Set Retry Limit", "{limit N|lifetime N}" },
152 +#endif /* WE_ESSENTIAL */
153 + { "ap", set_apaddr_info, 1, SIOCSIWAP,
154 + "Set AP Address", "{N|off|auto}" },
155 + { "txpower", set_txpower_info, 1, SIOCSIWTXPOW,
156 + "Set Tx Power", "{NmW|NdBm|off|auto}" },
157 { "rts", set_rts_info, 1, SIOCSIWRTS,
158 "Set RTS Threshold", "{N|auto|fixed|off}" },
159 { "frag", set_frag_info, 1, SIOCSIWFRAG,
160 "Set Fragmentation Threshold", "{N|auto|fixed|off}" },
161 - { "modulation", set_modulation_info, 1, SIOCGIWMODUL,
162 - "Set Modulation", "{11g|11a|CCK|OFDMg|...}" },
163 -#endif /* WE_ESSENTIAL */
164 { "commit", set_commit_info, 0, SIOCSIWCOMMIT,
165 "Commit changes", "" },
166 { NULL, NULL, 0, 0, NULL, NULL },
167 --- a/iwmulticall.c
168 +++ b/iwmulticall.c
169 @@ -76,12 +76,10 @@ extern int
170 #undef iw_usage
171 #undef main
172
173 -#ifndef WE_ESSENTIAL
174 /* Get iwspy in there, it's not that big. */
175 #define main(args...) main_iwspy(args)
176 #include "iwspy.c"
177 #undef main
178 -#endif /* WE_ESSENTIAL */
179
180 /* Get iwpriv in there. Mandatory for HostAP and some other drivers. */
181 #define main(args...) main_iwpriv(args)
182 @@ -128,10 +126,8 @@ main(int argc,
183 return(main_iwconfig(argc, argv));
184 if(!strcmp(call_name, "iwlist"))
185 return(main_iwlist(argc, argv));
186 -#ifndef WE_ESSENTIAL
187 if(!strcmp(call_name, "iwspy"))
188 return(main_iwspy(argc, argv));
189 -#endif /* WE_ESSENTIAL */
190 if(!strcmp(call_name, "iwpriv"))
191 return(main_iwpriv(argc, argv));
192 if(!strcmp(call_name, "iwgetid"))
This page took 0.056936 seconds and 5 git commands to generate.