aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ray_cs.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2010-03-18 21:29:40 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-03-23 16:50:28 -0400
commit43ead78ac48b75aaf47de96fcf10cbf5962f32a6 (patch)
tree8a38a617163ed842e7383bb560befc1d17026d59 /drivers/net/wireless/ray_cs.c
parentadc009e2e76b222006beb7f9df6d0aee051509d2 (diff)
drivers/net/wireless/ray_cs.c: Use iw_handler function prototypes
Change local functions that are cast to iw_handler to the more standard use with "union iwreq_data *wrqu" so the iw_handler array no longer needs the casts. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ray_cs.c')
-rw-r--r--drivers/net/wireless/ray_cs.c204
1 files changed, 93 insertions, 111 deletions
diff --git a/drivers/net/wireless/ray_cs.c b/drivers/net/wireless/ray_cs.c
index a42ee01e7b14..4f5bdb528ef7 100644
--- a/drivers/net/wireless/ray_cs.c
+++ b/drivers/net/wireless/ray_cs.c
@@ -1113,10 +1113,10 @@ static const struct ethtool_ops netdev_ethtool_ops = {
1113/* 1113/*
1114 * Wireless Handler : get protocol name 1114 * Wireless Handler : get protocol name
1115 */ 1115 */
1116static int ray_get_name(struct net_device *dev, 1116static int ray_get_name(struct net_device *dev, struct iw_request_info *info,
1117 struct iw_request_info *info, char *cwrq, char *extra) 1117 union iwreq_data *wrqu, char *extra)
1118{ 1118{
1119 strcpy(cwrq, "IEEE 802.11-FH"); 1119 strcpy(wrqu->name, "IEEE 802.11-FH");
1120 return 0; 1120 return 0;
1121} 1121}
1122 1122
@@ -1124,9 +1124,8 @@ static int ray_get_name(struct net_device *dev,
1124/* 1124/*
1125 * Wireless Handler : set frequency 1125 * Wireless Handler : set frequency
1126 */ 1126 */
1127static int ray_set_freq(struct net_device *dev, 1127static int ray_set_freq(struct net_device *dev, struct iw_request_info *info,
1128 struct iw_request_info *info, 1128 union iwreq_data *wrqu, char *extra)
1129 struct iw_freq *fwrq, char *extra)
1130{ 1129{
1131 ray_dev_t *local = netdev_priv(dev); 1130 ray_dev_t *local = netdev_priv(dev);
1132 int err = -EINPROGRESS; /* Call commit handler */ 1131 int err = -EINPROGRESS; /* Call commit handler */
@@ -1136,10 +1135,10 @@ static int ray_set_freq(struct net_device *dev,
1136 return -EBUSY; 1135 return -EBUSY;
1137 1136
1138 /* Setting by channel number */ 1137 /* Setting by channel number */
1139 if ((fwrq->m > USA_HOP_MOD) || (fwrq->e > 0)) 1138 if ((wrqu->freq.m > USA_HOP_MOD) || (wrqu->freq.e > 0))
1140 err = -EOPNOTSUPP; 1139 err = -EOPNOTSUPP;
1141 else 1140 else
1142 local->sparm.b5.a_hop_pattern = fwrq->m; 1141 local->sparm.b5.a_hop_pattern = wrqu->freq.m;
1143 1142
1144 return err; 1143 return err;
1145} 1144}
@@ -1148,14 +1147,13 @@ static int ray_set_freq(struct net_device *dev,
1148/* 1147/*
1149 * Wireless Handler : get frequency 1148 * Wireless Handler : get frequency
1150 */ 1149 */
1151static int ray_get_freq(struct net_device *dev, 1150static int ray_get_freq(struct net_device *dev, struct iw_request_info *info,
1152 struct iw_request_info *info, 1151 union iwreq_data *wrqu, char *extra)
1153 struct iw_freq *fwrq, char *extra)
1154{ 1152{
1155 ray_dev_t *local = netdev_priv(dev); 1153 ray_dev_t *local = netdev_priv(dev);
1156 1154
1157 fwrq->m = local->sparm.b5.a_hop_pattern; 1155 wrqu->freq.m = local->sparm.b5.a_hop_pattern;
1158 fwrq->e = 0; 1156 wrqu->freq.e = 0;
1159 return 0; 1157 return 0;
1160} 1158}
1161 1159
@@ -1163,9 +1161,8 @@ static int ray_get_freq(struct net_device *dev,
1163/* 1161/*
1164 * Wireless Handler : set ESSID 1162 * Wireless Handler : set ESSID
1165 */ 1163 */
1166static int ray_set_essid(struct net_device *dev, 1164static int ray_set_essid(struct net_device *dev, struct iw_request_info *info,
1167 struct iw_request_info *info, 1165 union iwreq_data *wrqu, char *extra)
1168 struct iw_point *dwrq, char *extra)
1169{ 1166{
1170 ray_dev_t *local = netdev_priv(dev); 1167 ray_dev_t *local = netdev_priv(dev);
1171 1168
@@ -1174,19 +1171,17 @@ static int ray_set_essid(struct net_device *dev,
1174 return -EBUSY; 1171 return -EBUSY;
1175 1172
1176 /* Check if we asked for `any' */ 1173 /* Check if we asked for `any' */
1177 if (dwrq->flags == 0) { 1174 if (wrqu->essid.flags == 0)
1178 /* Corey : can you do that ? */ 1175 /* Corey : can you do that ? */
1179 return -EOPNOTSUPP; 1176 return -EOPNOTSUPP;
1180 } else {
1181 /* Check the size of the string */
1182 if (dwrq->length > IW_ESSID_MAX_SIZE) {
1183 return -E2BIG;
1184 }
1185 1177
1186 /* Set the ESSID in the card */ 1178 /* Check the size of the string */
1187 memset(local->sparm.b5.a_current_ess_id, 0, IW_ESSID_MAX_SIZE); 1179 if (wrqu->essid.length > IW_ESSID_MAX_SIZE)
1188 memcpy(local->sparm.b5.a_current_ess_id, extra, dwrq->length); 1180 return -E2BIG;
1189 } 1181
1182 /* Set the ESSID in the card */
1183 memset(local->sparm.b5.a_current_ess_id, 0, IW_ESSID_MAX_SIZE);
1184 memcpy(local->sparm.b5.a_current_ess_id, extra, wrqu->essid.length);
1190 1185
1191 return -EINPROGRESS; /* Call commit handler */ 1186 return -EINPROGRESS; /* Call commit handler */
1192} 1187}
@@ -1195,9 +1190,8 @@ static int ray_set_essid(struct net_device *dev,
1195/* 1190/*
1196 * Wireless Handler : get ESSID 1191 * Wireless Handler : get ESSID
1197 */ 1192 */
1198static int ray_get_essid(struct net_device *dev, 1193static int ray_get_essid(struct net_device *dev, struct iw_request_info *info,
1199 struct iw_request_info *info, 1194 union iwreq_data *wrqu, char *extra)
1200 struct iw_point *dwrq, char *extra)
1201{ 1195{
1202 ray_dev_t *local = netdev_priv(dev); 1196 ray_dev_t *local = netdev_priv(dev);
1203 1197
@@ -1205,8 +1199,8 @@ static int ray_get_essid(struct net_device *dev,
1205 memcpy(extra, local->sparm.b5.a_current_ess_id, IW_ESSID_MAX_SIZE); 1199 memcpy(extra, local->sparm.b5.a_current_ess_id, IW_ESSID_MAX_SIZE);
1206 1200
1207 /* Push it out ! */ 1201 /* Push it out ! */
1208 dwrq->length = strlen(extra); 1202 wrqu->essid.length = strlen(extra);
1209 dwrq->flags = 1; /* active */ 1203 wrqu->essid.flags = 1; /* active */
1210 1204
1211 return 0; 1205 return 0;
1212} 1206}
@@ -1215,14 +1209,13 @@ static int ray_get_essid(struct net_device *dev,
1215/* 1209/*
1216 * Wireless Handler : get AP address 1210 * Wireless Handler : get AP address
1217 */ 1211 */
1218static int ray_get_wap(struct net_device *dev, 1212static int ray_get_wap(struct net_device *dev, struct iw_request_info *info,
1219 struct iw_request_info *info, 1213 union iwreq_data *wrqu, char *extra)
1220 struct sockaddr *awrq, char *extra)
1221{ 1214{
1222 ray_dev_t *local = netdev_priv(dev); 1215 ray_dev_t *local = netdev_priv(dev);
1223 1216
1224 memcpy(awrq->sa_data, local->bss_id, ETH_ALEN); 1217 memcpy(wrqu->ap_addr.sa_data, local->bss_id, ETH_ALEN);
1225 awrq->sa_family = ARPHRD_ETHER; 1218 wrqu->ap_addr.sa_family = ARPHRD_ETHER;
1226 1219
1227 return 0; 1220 return 0;
1228} 1221}
@@ -1231,9 +1224,8 @@ static int ray_get_wap(struct net_device *dev,
1231/* 1224/*
1232 * Wireless Handler : set Bit-Rate 1225 * Wireless Handler : set Bit-Rate
1233 */ 1226 */
1234static int ray_set_rate(struct net_device *dev, 1227static int ray_set_rate(struct net_device *dev, struct iw_request_info *info,
1235 struct iw_request_info *info, 1228 union iwreq_data *wrqu, char *extra)
1236 struct iw_param *vwrq, char *extra)
1237{ 1229{
1238 ray_dev_t *local = netdev_priv(dev); 1230 ray_dev_t *local = netdev_priv(dev);
1239 1231
@@ -1242,15 +1234,15 @@ static int ray_set_rate(struct net_device *dev,
1242 return -EBUSY; 1234 return -EBUSY;
1243 1235
1244 /* Check if rate is in range */ 1236 /* Check if rate is in range */
1245 if ((vwrq->value != 1000000) && (vwrq->value != 2000000)) 1237 if ((wrqu->bitrate.value != 1000000) && (wrqu->bitrate.value != 2000000))
1246 return -EINVAL; 1238 return -EINVAL;
1247 1239
1248 /* Hack for 1.5 Mb/s instead of 2 Mb/s */ 1240 /* Hack for 1.5 Mb/s instead of 2 Mb/s */
1249 if ((local->fw_ver == 0x55) && /* Please check */ 1241 if ((local->fw_ver == 0x55) && /* Please check */
1250 (vwrq->value == 2000000)) 1242 (wrqu->bitrate.value == 2000000))
1251 local->net_default_tx_rate = 3; 1243 local->net_default_tx_rate = 3;
1252 else 1244 else
1253 local->net_default_tx_rate = vwrq->value / 500000; 1245 local->net_default_tx_rate = wrqu->bitrate.value / 500000;
1254 1246
1255 return 0; 1247 return 0;
1256} 1248}
@@ -1259,17 +1251,16 @@ static int ray_set_rate(struct net_device *dev,
1259/* 1251/*
1260 * Wireless Handler : get Bit-Rate 1252 * Wireless Handler : get Bit-Rate
1261 */ 1253 */
1262static int ray_get_rate(struct net_device *dev, 1254static int ray_get_rate(struct net_device *dev, struct iw_request_info *info,
1263 struct iw_request_info *info, 1255 union iwreq_data *wrqu, char *extra)
1264 struct iw_param *vwrq, char *extra)
1265{ 1256{
1266 ray_dev_t *local = netdev_priv(dev); 1257 ray_dev_t *local = netdev_priv(dev);
1267 1258
1268 if (local->net_default_tx_rate == 3) 1259 if (local->net_default_tx_rate == 3)
1269 vwrq->value = 2000000; /* Hum... */ 1260 wrqu->bitrate.value = 2000000; /* Hum... */
1270 else 1261 else
1271 vwrq->value = local->net_default_tx_rate * 500000; 1262 wrqu->bitrate.value = local->net_default_tx_rate * 500000;
1272 vwrq->fixed = 0; /* We are in auto mode */ 1263 wrqu->bitrate.fixed = 0; /* We are in auto mode */
1273 1264
1274 return 0; 1265 return 0;
1275} 1266}
@@ -1278,19 +1269,18 @@ static int ray_get_rate(struct net_device *dev,
1278/* 1269/*
1279 * Wireless Handler : set RTS threshold 1270 * Wireless Handler : set RTS threshold
1280 */ 1271 */
1281static int ray_set_rts(struct net_device *dev, 1272static int ray_set_rts(struct net_device *dev, struct iw_request_info *info,
1282 struct iw_request_info *info, 1273 union iwreq_data *wrqu, char *extra)
1283 struct iw_param *vwrq, char *extra)
1284{ 1274{
1285 ray_dev_t *local = netdev_priv(dev); 1275 ray_dev_t *local = netdev_priv(dev);
1286 int rthr = vwrq->value; 1276 int rthr = wrqu->rts.value;
1287 1277
1288 /* Reject if card is already initialised */ 1278 /* Reject if card is already initialised */
1289 if (local->card_status != CARD_AWAITING_PARAM) 1279 if (local->card_status != CARD_AWAITING_PARAM)
1290 return -EBUSY; 1280 return -EBUSY;
1291 1281
1292 /* if(wrq->u.rts.fixed == 0) we should complain */ 1282 /* if(wrq->u.rts.fixed == 0) we should complain */
1293 if (vwrq->disabled) 1283 if (wrqu->rts.disabled)
1294 rthr = 32767; 1284 rthr = 32767;
1295 else { 1285 else {
1296 if ((rthr < 0) || (rthr > 2347)) /* What's the max packet size ??? */ 1286 if ((rthr < 0) || (rthr > 2347)) /* What's the max packet size ??? */
@@ -1306,16 +1296,15 @@ static int ray_set_rts(struct net_device *dev,
1306/* 1296/*
1307 * Wireless Handler : get RTS threshold 1297 * Wireless Handler : get RTS threshold
1308 */ 1298 */
1309static int ray_get_rts(struct net_device *dev, 1299static int ray_get_rts(struct net_device *dev, struct iw_request_info *info,
1310 struct iw_request_info *info, 1300 union iwreq_data *wrqu, char *extra)
1311 struct iw_param *vwrq, char *extra)
1312{ 1301{
1313 ray_dev_t *local = netdev_priv(dev); 1302 ray_dev_t *local = netdev_priv(dev);
1314 1303
1315 vwrq->value = (local->sparm.b5.a_rts_threshold[0] << 8) 1304 wrqu->rts.value = (local->sparm.b5.a_rts_threshold[0] << 8)
1316 + local->sparm.b5.a_rts_threshold[1]; 1305 + local->sparm.b5.a_rts_threshold[1];
1317 vwrq->disabled = (vwrq->value == 32767); 1306 wrqu->rts.disabled = (wrqu->rts.value == 32767);
1318 vwrq->fixed = 1; 1307 wrqu->rts.fixed = 1;
1319 1308
1320 return 0; 1309 return 0;
1321} 1310}
@@ -1324,19 +1313,18 @@ static int ray_get_rts(struct net_device *dev,
1324/* 1313/*
1325 * Wireless Handler : set Fragmentation threshold 1314 * Wireless Handler : set Fragmentation threshold
1326 */ 1315 */
1327static int ray_set_frag(struct net_device *dev, 1316static int ray_set_frag(struct net_device *dev, struct iw_request_info *info,
1328 struct iw_request_info *info, 1317 union iwreq_data *wrqu, char *extra)
1329 struct iw_param *vwrq, char *extra)
1330{ 1318{
1331 ray_dev_t *local = netdev_priv(dev); 1319 ray_dev_t *local = netdev_priv(dev);
1332 int fthr = vwrq->value; 1320 int fthr = wrqu->frag.value;
1333 1321
1334 /* Reject if card is already initialised */ 1322 /* Reject if card is already initialised */
1335 if (local->card_status != CARD_AWAITING_PARAM) 1323 if (local->card_status != CARD_AWAITING_PARAM)
1336 return -EBUSY; 1324 return -EBUSY;
1337 1325
1338 /* if(wrq->u.frag.fixed == 0) should complain */ 1326 /* if(wrq->u.frag.fixed == 0) should complain */
1339 if (vwrq->disabled) 1327 if (wrqu->frag.disabled)
1340 fthr = 32767; 1328 fthr = 32767;
1341 else { 1329 else {
1342 if ((fthr < 256) || (fthr > 2347)) /* To check out ! */ 1330 if ((fthr < 256) || (fthr > 2347)) /* To check out ! */
@@ -1352,16 +1340,15 @@ static int ray_set_frag(struct net_device *dev,
1352/* 1340/*
1353 * Wireless Handler : get Fragmentation threshold 1341 * Wireless Handler : get Fragmentation threshold
1354 */ 1342 */
1355static int ray_get_frag(struct net_device *dev, 1343static int ray_get_frag(struct net_device *dev, struct iw_request_info *info,
1356 struct iw_request_info *info, 1344 union iwreq_data *wrqu, char *extra)
1357 struct iw_param *vwrq, char *extra)
1358{ 1345{
1359 ray_dev_t *local = netdev_priv(dev); 1346 ray_dev_t *local = netdev_priv(dev);
1360 1347
1361 vwrq->value = (local->sparm.b5.a_frag_threshold[0] << 8) 1348 wrqu->frag.value = (local->sparm.b5.a_frag_threshold[0] << 8)
1362 + local->sparm.b5.a_frag_threshold[1]; 1349 + local->sparm.b5.a_frag_threshold[1];
1363 vwrq->disabled = (vwrq->value == 32767); 1350 wrqu->frag.disabled = (wrqu->frag.value == 32767);
1364 vwrq->fixed = 1; 1351 wrqu->frag.fixed = 1;
1365 1352
1366 return 0; 1353 return 0;
1367} 1354}
@@ -1370,8 +1357,8 @@ static int ray_get_frag(struct net_device *dev,
1370/* 1357/*
1371 * Wireless Handler : set Mode of Operation 1358 * Wireless Handler : set Mode of Operation
1372 */ 1359 */
1373static int ray_set_mode(struct net_device *dev, 1360static int ray_set_mode(struct net_device *dev, struct iw_request_info *info,
1374 struct iw_request_info *info, __u32 *uwrq, char *extra) 1361 union iwreq_data *wrqu, char *extra)
1375{ 1362{
1376 ray_dev_t *local = netdev_priv(dev); 1363 ray_dev_t *local = netdev_priv(dev);
1377 int err = -EINPROGRESS; /* Call commit handler */ 1364 int err = -EINPROGRESS; /* Call commit handler */
@@ -1381,7 +1368,7 @@ static int ray_set_mode(struct net_device *dev,
1381 if (local->card_status != CARD_AWAITING_PARAM) 1368 if (local->card_status != CARD_AWAITING_PARAM)
1382 return -EBUSY; 1369 return -EBUSY;
1383 1370
1384 switch (*uwrq) { 1371 switch (wrqu->mode) {
1385 case IW_MODE_ADHOC: 1372 case IW_MODE_ADHOC:
1386 card_mode = 0; 1373 card_mode = 0;
1387 /* Fall through */ 1374 /* Fall through */
@@ -1399,15 +1386,15 @@ static int ray_set_mode(struct net_device *dev,
1399/* 1386/*
1400 * Wireless Handler : get Mode of Operation 1387 * Wireless Handler : get Mode of Operation
1401 */ 1388 */
1402static int ray_get_mode(struct net_device *dev, 1389static int ray_get_mode(struct net_device *dev, struct iw_request_info *info,
1403 struct iw_request_info *info, __u32 *uwrq, char *extra) 1390 union iwreq_data *wrqu, char *extra)
1404{ 1391{
1405 ray_dev_t *local = netdev_priv(dev); 1392 ray_dev_t *local = netdev_priv(dev);
1406 1393
1407 if (local->sparm.b5.a_network_type) 1394 if (local->sparm.b5.a_network_type)
1408 *uwrq = IW_MODE_INFRA; 1395 wrqu->mode = IW_MODE_INFRA;
1409 else 1396 else
1410 *uwrq = IW_MODE_ADHOC; 1397 wrqu->mode = IW_MODE_ADHOC;
1411 1398
1412 return 0; 1399 return 0;
1413} 1400}
@@ -1416,16 +1403,15 @@ static int ray_get_mode(struct net_device *dev,
1416/* 1403/*
1417 * Wireless Handler : get range info 1404 * Wireless Handler : get range info
1418 */ 1405 */
1419static int ray_get_range(struct net_device *dev, 1406static int ray_get_range(struct net_device *dev, struct iw_request_info *info,
1420 struct iw_request_info *info, 1407 union iwreq_data *wrqu, char *extra)
1421 struct iw_point *dwrq, char *extra)
1422{ 1408{
1423 struct iw_range *range = (struct iw_range *)extra; 1409 struct iw_range *range = (struct iw_range *)extra;
1424 1410
1425 memset((char *)range, 0, sizeof(struct iw_range)); 1411 memset(range, 0, sizeof(struct iw_range));
1426 1412
1427 /* Set the length (very important for backward compatibility) */ 1413 /* Set the length (very important for backward compatibility) */
1428 dwrq->length = sizeof(struct iw_range); 1414 wrqu->data.length = sizeof(struct iw_range);
1429 1415
1430 /* Set the Wireless Extension versions */ 1416 /* Set the Wireless Extension versions */
1431 range->we_version_compiled = WIRELESS_EXT; 1417 range->we_version_compiled = WIRELESS_EXT;
@@ -1448,8 +1434,7 @@ static int ray_get_range(struct net_device *dev,
1448/* 1434/*
1449 * Wireless Private Handler : set framing mode 1435 * Wireless Private Handler : set framing mode
1450 */ 1436 */
1451static int ray_set_framing(struct net_device *dev, 1437static int ray_set_framing(struct net_device *dev, struct iw_request_info *info,
1452 struct iw_request_info *info,
1453 union iwreq_data *wrqu, char *extra) 1438 union iwreq_data *wrqu, char *extra)
1454{ 1439{
1455 translate = *(extra); /* Set framing mode */ 1440 translate = *(extra); /* Set framing mode */
@@ -1461,8 +1446,7 @@ static int ray_set_framing(struct net_device *dev,
1461/* 1446/*
1462 * Wireless Private Handler : get framing mode 1447 * Wireless Private Handler : get framing mode
1463 */ 1448 */
1464static int ray_get_framing(struct net_device *dev, 1449static int ray_get_framing(struct net_device *dev, struct iw_request_info *info,
1465 struct iw_request_info *info,
1466 union iwreq_data *wrqu, char *extra) 1450 union iwreq_data *wrqu, char *extra)
1467{ 1451{
1468 *(extra) = translate; 1452 *(extra) = translate;
@@ -1474,8 +1458,7 @@ static int ray_get_framing(struct net_device *dev,
1474/* 1458/*
1475 * Wireless Private Handler : get country 1459 * Wireless Private Handler : get country
1476 */ 1460 */
1477static int ray_get_country(struct net_device *dev, 1461static int ray_get_country(struct net_device *dev, struct iw_request_info *info,
1478 struct iw_request_info *info,
1479 union iwreq_data *wrqu, char *extra) 1462 union iwreq_data *wrqu, char *extra)
1480{ 1463{
1481 *(extra) = country; 1464 *(extra) = country;
@@ -1487,10 +1470,9 @@ static int ray_get_country(struct net_device *dev,
1487/* 1470/*
1488 * Commit handler : called after a bunch of SET operations 1471 * Commit handler : called after a bunch of SET operations
1489 */ 1472 */
1490static int ray_commit(struct net_device *dev, struct iw_request_info *info, /* NULL */ 1473static int ray_commit(struct net_device *dev, struct iw_request_info *info,
1491 void *zwrq, /* NULL */ 1474 union iwreq_data *wrqu, char *extra)
1492 char *extra) 1475{
1493{ /* NULL */
1494 return 0; 1476 return 0;
1495} 1477}
1496 1478
@@ -1531,28 +1513,28 @@ static iw_stats *ray_get_wireless_stats(struct net_device *dev)
1531 */ 1513 */
1532 1514
1533static const iw_handler ray_handler[] = { 1515static const iw_handler ray_handler[] = {
1534 IW_HANDLER(SIOCSIWCOMMIT, (iw_handler)ray_commit), 1516 IW_HANDLER(SIOCSIWCOMMIT, ray_commit),
1535 IW_HANDLER(SIOCGIWNAME, (iw_handler)ray_get_name), 1517 IW_HANDLER(SIOCGIWNAME, ray_get_name),
1536 IW_HANDLER(SIOCSIWFREQ, (iw_handler)ray_set_freq), 1518 IW_HANDLER(SIOCSIWFREQ, ray_set_freq),
1537 IW_HANDLER(SIOCGIWFREQ, (iw_handler)ray_get_freq), 1519 IW_HANDLER(SIOCGIWFREQ, ray_get_freq),
1538 IW_HANDLER(SIOCSIWMODE, (iw_handler)ray_set_mode), 1520 IW_HANDLER(SIOCSIWMODE, ray_set_mode),
1539 IW_HANDLER(SIOCGIWMODE, (iw_handler)ray_get_mode), 1521 IW_HANDLER(SIOCGIWMODE, ray_get_mode),
1540 IW_HANDLER(SIOCGIWRANGE, (iw_handler)ray_get_range), 1522 IW_HANDLER(SIOCGIWRANGE, ray_get_range),
1541#ifdef WIRELESS_SPY 1523#ifdef WIRELESS_SPY
1542 IW_HANDLER(SIOCSIWSPY, iw_handler_set_spy), 1524 IW_HANDLER(SIOCSIWSPY, iw_handler_set_spy),
1543 IW_HANDLER(SIOCGIWSPY, iw_handler_get_spy), 1525 IW_HANDLER(SIOCGIWSPY, iw_handler_get_spy),
1544 IW_HANDLER(SIOCSIWTHRSPY, iw_handler_set_thrspy), 1526 IW_HANDLER(SIOCSIWTHRSPY, iw_handler_set_thrspy),
1545 IW_HANDLER(SIOCGIWTHRSPY, iw_handler_get_thrspy), 1527 IW_HANDLER(SIOCGIWTHRSPY, iw_handler_get_thrspy),
1546#endif /* WIRELESS_SPY */ 1528#endif /* WIRELESS_SPY */
1547 IW_HANDLER(SIOCGIWAP, (iw_handler)ray_get_wap), 1529 IW_HANDLER(SIOCGIWAP, ray_get_wap),
1548 IW_HANDLER(SIOCSIWESSID, (iw_handler)ray_set_essid), 1530 IW_HANDLER(SIOCSIWESSID, ray_set_essid),
1549 IW_HANDLER(SIOCGIWESSID, (iw_handler)ray_get_essid), 1531 IW_HANDLER(SIOCGIWESSID, ray_get_essid),
1550 IW_HANDLER(SIOCSIWRATE, (iw_handler)ray_set_rate), 1532 IW_HANDLER(SIOCSIWRATE, ray_set_rate),
1551 IW_HANDLER(SIOCGIWRATE, (iw_handler)ray_get_rate), 1533 IW_HANDLER(SIOCGIWRATE, ray_get_rate),
1552 IW_HANDLER(SIOCSIWRTS, (iw_handler)ray_set_rts), 1534 IW_HANDLER(SIOCSIWRTS, ray_set_rts),
1553 IW_HANDLER(SIOCGIWRTS, (iw_handler)ray_get_rts), 1535 IW_HANDLER(SIOCGIWRTS, ray_get_rts),
1554 IW_HANDLER(SIOCSIWFRAG, (iw_handler)ray_set_frag), 1536 IW_HANDLER(SIOCSIWFRAG, ray_set_frag),
1555 IW_HANDLER(SIOCGIWFRAG, (iw_handler)ray_get_frag), 1537 IW_HANDLER(SIOCGIWFRAG, ray_get_frag),
1556}; 1538};
1557 1539
1558#define SIOCSIPFRAMING SIOCIWFIRSTPRIV /* Set framing mode */ 1540#define SIOCSIPFRAMING SIOCIWFIRSTPRIV /* Set framing mode */
@@ -1560,9 +1542,9 @@ static const iw_handler ray_handler[] = {
1560#define SIOCGIPCOUNTRY SIOCIWFIRSTPRIV + 3 /* Get country code */ 1542#define SIOCGIPCOUNTRY SIOCIWFIRSTPRIV + 3 /* Get country code */
1561 1543
1562static const iw_handler ray_private_handler[] = { 1544static const iw_handler ray_private_handler[] = {
1563 [0] = (iw_handler) ray_set_framing, 1545 [0] = ray_set_framing,
1564 [1] = (iw_handler) ray_get_framing, 1546 [1] = ray_get_framing,
1565 [3] = (iw_handler) ray_get_country, 1547 [3] = ray_get_country,
1566}; 1548};
1567 1549
1568static const struct iw_priv_args ray_private_args[] = { 1550static const struct iw_priv_args ray_private_args[] = {