3 @@ -1302,7 +1302,6 @@ print_pm_info(int skfd,
8 /************************** TRANSMIT POWER **************************/
10 /*------------------------------------------------------------------*/
11 @@ -1405,6 +1404,7 @@ print_txpower_info(int skfd,
16 /*********************** RETRY LIMIT/LIFETIME ***********************/
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 },
24 { "txpower", print_txpower_info, 0, NULL },
26 { "retry", print_retry_info, 0, NULL },
27 { "ap", print_ap_info, 0, NULL },
28 { "accesspoints", print_ap_info, 0, NULL },
31 @@ -106,16 +106,6 @@ get_info(int skfd,
32 if(wrq.u.data.length > 1)
33 info->has_nickname = 1;
35 - if((info->has_range) && (info->range.we_version_compiled > 9))
37 - /* Get Transmit Power */
38 - if(iw_get_ext(skfd, ifname, SIOCGIWTXPOW, &wrq) >= 0)
40 - info->has_txpower = 1;
41 - memcpy(&(info->txpower), &(wrq.u.txpower), sizeof(iwparam));
46 if(iw_get_ext(skfd, ifname, SIOCGIWSENS, &wrq) >= 0)
48 @@ -132,6 +122,17 @@ get_info(int skfd,
49 memcpy(&(info->retry), &(wrq.u.retry), sizeof(iwparam));
52 +#endif /* WE_ESSENTIAL */
54 + if((info->has_range) && (info->range.we_version_compiled > 9))
56 + /* Get Transmit Power */
57 + if(iw_get_ext(skfd, ifname, SIOCGIWTXPOW, &wrq) >= 0)
59 + info->has_txpower = 1;
60 + memcpy(&(info->txpower), &(wrq.u.txpower), sizeof(iwparam));
64 /* Get RTS threshold */
65 if(iw_get_ext(skfd, ifname, SIOCGIWRTS, &wrq) >= 0)
66 @@ -146,7 +147,6 @@ get_info(int skfd,
68 memcpy(&(info->frag), &(wrq.u.frag), sizeof(iwparam));
70 -#endif /* WE_ESSENTIAL */
74 @@ -269,7 +269,6 @@ display_info(struct wireless_info * info
75 printf("Bit Rate%c%s ", (info->bitrate.fixed ? '=' : ':'), buffer);
79 /* Display the Transmit Power */
82 @@ -286,6 +285,7 @@ display_info(struct wireless_info * info
83 printf("Tx-Power%c%s ", (info->txpower.fixed ? '=' : ':'), buffer);
87 /* Display sensitivity */
90 @@ -340,6 +340,7 @@ display_info(struct wireless_info * info
92 tokens += 5; /* Between 3 and 5, depend on flags */
94 +#endif /* WE_ESSENTIAL */
96 /* Display the RTS threshold */
98 @@ -383,7 +384,6 @@ display_info(struct wireless_info * info
102 -#endif /* WE_ESSENTIAL */
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,
110 +#endif /* WE_ESSENTIAL */
112 /*------------------------------------------------------------------*/
114 @@ -1362,6 +1363,7 @@ set_txpower_info(int skfd,
118 +#ifndef WE_ESSENTIAL
119 /*------------------------------------------------------------------*/
122 @@ -1459,6 +1461,7 @@ set_retry_info(int skfd,
126 +#endif /* WE_ESSENTIAL */
128 /*------------------------------------------------------------------*/
130 @@ -1565,6 +1568,7 @@ set_frag_info(int skfd,
134 +#ifndef WE_ESSENTIAL
135 /*------------------------------------------------------------------*/
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 },
169 @@ -76,12 +76,10 @@ extern int
173 -#ifndef WE_ESSENTIAL
174 /* Get iwspy in there, it's not that big. */
175 #define main(args...) main_iwspy(args)
178 -#endif /* WE_ESSENTIAL */
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"))