diff options
Diffstat (limited to 'net/wireless/wext-core.c')
-rw-r--r-- | net/wireless/wext-core.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/net/wireless/wext-core.c b/net/wireless/wext-core.c index dbde22b8f30f..bfcbeee23f9c 100644 --- a/net/wireless/wext-core.c +++ b/net/wireless/wext-core.c | |||
@@ -261,44 +261,44 @@ static const unsigned standard_ioctl_num = ARRAY_SIZE(standard_ioctl); | |||
261 | * we know about. | 261 | * we know about. |
262 | */ | 262 | */ |
263 | static const struct iw_ioctl_description standard_event[] = { | 263 | static const struct iw_ioctl_description standard_event[] = { |
264 | [IWEVTXDROP - IWEVFIRST] = { | 264 | [IW_EVENT_IDX(IWEVTXDROP)] = { |
265 | .header_type = IW_HEADER_TYPE_ADDR, | 265 | .header_type = IW_HEADER_TYPE_ADDR, |
266 | }, | 266 | }, |
267 | [IWEVQUAL - IWEVFIRST] = { | 267 | [IW_EVENT_IDX(IWEVQUAL)] = { |
268 | .header_type = IW_HEADER_TYPE_QUAL, | 268 | .header_type = IW_HEADER_TYPE_QUAL, |
269 | }, | 269 | }, |
270 | [IWEVCUSTOM - IWEVFIRST] = { | 270 | [IW_EVENT_IDX(IWEVCUSTOM)] = { |
271 | .header_type = IW_HEADER_TYPE_POINT, | 271 | .header_type = IW_HEADER_TYPE_POINT, |
272 | .token_size = 1, | 272 | .token_size = 1, |
273 | .max_tokens = IW_CUSTOM_MAX, | 273 | .max_tokens = IW_CUSTOM_MAX, |
274 | }, | 274 | }, |
275 | [IWEVREGISTERED - IWEVFIRST] = { | 275 | [IW_EVENT_IDX(IWEVREGISTERED)] = { |
276 | .header_type = IW_HEADER_TYPE_ADDR, | 276 | .header_type = IW_HEADER_TYPE_ADDR, |
277 | }, | 277 | }, |
278 | [IWEVEXPIRED - IWEVFIRST] = { | 278 | [IW_EVENT_IDX(IWEVEXPIRED)] = { |
279 | .header_type = IW_HEADER_TYPE_ADDR, | 279 | .header_type = IW_HEADER_TYPE_ADDR, |
280 | }, | 280 | }, |
281 | [IWEVGENIE - IWEVFIRST] = { | 281 | [IW_EVENT_IDX(IWEVGENIE)] = { |
282 | .header_type = IW_HEADER_TYPE_POINT, | 282 | .header_type = IW_HEADER_TYPE_POINT, |
283 | .token_size = 1, | 283 | .token_size = 1, |
284 | .max_tokens = IW_GENERIC_IE_MAX, | 284 | .max_tokens = IW_GENERIC_IE_MAX, |
285 | }, | 285 | }, |
286 | [IWEVMICHAELMICFAILURE - IWEVFIRST] = { | 286 | [IW_EVENT_IDX(IWEVMICHAELMICFAILURE)] = { |
287 | .header_type = IW_HEADER_TYPE_POINT, | 287 | .header_type = IW_HEADER_TYPE_POINT, |
288 | .token_size = 1, | 288 | .token_size = 1, |
289 | .max_tokens = sizeof(struct iw_michaelmicfailure), | 289 | .max_tokens = sizeof(struct iw_michaelmicfailure), |
290 | }, | 290 | }, |
291 | [IWEVASSOCREQIE - IWEVFIRST] = { | 291 | [IW_EVENT_IDX(IWEVASSOCREQIE)] = { |
292 | .header_type = IW_HEADER_TYPE_POINT, | 292 | .header_type = IW_HEADER_TYPE_POINT, |
293 | .token_size = 1, | 293 | .token_size = 1, |
294 | .max_tokens = IW_GENERIC_IE_MAX, | 294 | .max_tokens = IW_GENERIC_IE_MAX, |
295 | }, | 295 | }, |
296 | [IWEVASSOCRESPIE - IWEVFIRST] = { | 296 | [IW_EVENT_IDX(IWEVASSOCRESPIE)] = { |
297 | .header_type = IW_HEADER_TYPE_POINT, | 297 | .header_type = IW_HEADER_TYPE_POINT, |
298 | .token_size = 1, | 298 | .token_size = 1, |
299 | .max_tokens = IW_GENERIC_IE_MAX, | 299 | .max_tokens = IW_GENERIC_IE_MAX, |
300 | }, | 300 | }, |
301 | [IWEVPMKIDCAND - IWEVFIRST] = { | 301 | [IW_EVENT_IDX(IWEVPMKIDCAND)] = { |
302 | .header_type = IW_HEADER_TYPE_POINT, | 302 | .header_type = IW_HEADER_TYPE_POINT, |
303 | .token_size = 1, | 303 | .token_size = 1, |
304 | .max_tokens = sizeof(struct iw_pmkid_cand), | 304 | .max_tokens = sizeof(struct iw_pmkid_cand), |
@@ -453,7 +453,7 @@ void wireless_send_event(struct net_device * dev, | |||
453 | if (cmd_index < standard_ioctl_num) | 453 | if (cmd_index < standard_ioctl_num) |
454 | descr = &(standard_ioctl[cmd_index]); | 454 | descr = &(standard_ioctl[cmd_index]); |
455 | } else { | 455 | } else { |
456 | cmd_index = cmd - IWEVFIRST; | 456 | cmd_index = IW_EVENT_IDX(cmd); |
457 | if (cmd_index < standard_event_num) | 457 | if (cmd_index < standard_event_num) |
458 | descr = &(standard_event[cmd_index]); | 458 | descr = &(standard_event[cmd_index]); |
459 | } | 459 | } |