diff options
author | Dan Williams <dcbw@redhat.com> | 2007-08-02 11:31:18 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:49:43 -0400 |
commit | 0aef64d75851c9f3545d0793f26486ed862306d8 (patch) | |
tree | 5cf333e35691636ce1dc728c749679359677cb66 /drivers/net/wireless/libertas/11d.c | |
parent | b44898eb2c917cd397a0d8654f1c249dd3cdc67e (diff) |
[PATCH] libertas: re-uppercase command defines and other constants
For readability.
Signed-off-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/11d.c')
-rw-r--r-- | drivers/net/wireless/libertas/11d.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/drivers/net/wireless/libertas/11d.c b/drivers/net/wireless/libertas/11d.c index 4cf0ff7b833d..26d85ec37d9e 100644 --- a/drivers/net/wireless/libertas/11d.c +++ b/drivers/net/wireless/libertas/11d.c | |||
@@ -422,13 +422,13 @@ done: | |||
422 | u8 libertas_get_scan_type_11d(u8 chan, | 422 | u8 libertas_get_scan_type_11d(u8 chan, |
423 | struct parsed_region_chan_11d * parsed_region_chan) | 423 | struct parsed_region_chan_11d * parsed_region_chan) |
424 | { | 424 | { |
425 | u8 scan_type = cmd_scan_type_passive; | 425 | u8 scan_type = CMD_SCAN_TYPE_PASSIVE; |
426 | 426 | ||
427 | lbs_deb_enter(LBS_DEB_11D); | 427 | lbs_deb_enter(LBS_DEB_11D); |
428 | 428 | ||
429 | if (wlan_channel_known_11d(chan, parsed_region_chan)) { | 429 | if (wlan_channel_known_11d(chan, parsed_region_chan)) { |
430 | lbs_deb_11d("11D: Found and do Active Scan\n"); | 430 | lbs_deb_11d("11D: Found and do Active Scan\n"); |
431 | scan_type = cmd_scan_type_active; | 431 | scan_type = CMD_SCAN_TYPE_ACTIVE; |
432 | } else { | 432 | } else { |
433 | lbs_deb_11d("11D: Not Find and do Passive Scan\n"); | 433 | lbs_deb_11d("11D: Not Find and do Passive Scan\n"); |
434 | } | 434 | } |
@@ -454,9 +454,9 @@ static int wlan_enable_11d(wlan_private * priv, u8 flag) | |||
454 | 454 | ||
455 | /* send cmd to FW to enable/disable 11D function in FW */ | 455 | /* send cmd to FW to enable/disable 11D function in FW */ |
456 | ret = libertas_prepare_and_send_command(priv, | 456 | ret = libertas_prepare_and_send_command(priv, |
457 | cmd_802_11_snmp_mib, | 457 | CMD_802_11_SNMP_MIB, |
458 | cmd_act_set, | 458 | CMD_ACT_SET, |
459 | cmd_option_waitforrsp, | 459 | CMD_OPTION_WAITFORRSP, |
460 | OID_802_11D_ENABLE, | 460 | OID_802_11D_ENABLE, |
461 | &priv->adapter->enable11d); | 461 | &priv->adapter->enable11d); |
462 | if (ret) | 462 | if (ret) |
@@ -479,9 +479,9 @@ static int set_domain_info_11d(wlan_private * priv) | |||
479 | return 0; | 479 | return 0; |
480 | } | 480 | } |
481 | 481 | ||
482 | ret = libertas_prepare_and_send_command(priv, cmd_802_11d_domain_info, | 482 | ret = libertas_prepare_and_send_command(priv, CMD_802_11D_DOMAIN_INFO, |
483 | cmd_act_set, | 483 | CMD_ACT_SET, |
484 | cmd_option_waitforrsp, 0, NULL); | 484 | CMD_OPTION_WAITFORRSP, 0, NULL); |
485 | if (ret) | 485 | if (ret) |
486 | lbs_deb_11d("11D: Fail to dnld domain Info\n"); | 486 | lbs_deb_11d("11D: Fail to dnld domain Info\n"); |
487 | 487 | ||
@@ -541,7 +541,7 @@ int libertas_cmd_802_11d_domain_info(wlan_private * priv, | |||
541 | 541 | ||
542 | cmd->command = cpu_to_le16(cmdno); | 542 | cmd->command = cpu_to_le16(cmdno); |
543 | pdomaininfo->action = cpu_to_le16(cmdoption); | 543 | pdomaininfo->action = cpu_to_le16(cmdoption); |
544 | if (cmdoption == cmd_act_get) { | 544 | if (cmdoption == CMD_ACT_GET) { |
545 | cmd->size = | 545 | cmd->size = |
546 | cpu_to_le16(sizeof(pdomaininfo->action) + S_DS_GEN); | 546 | cpu_to_le16(sizeof(pdomaininfo->action) + S_DS_GEN); |
547 | lbs_dbg_hex("11D: 802_11D_DOMAIN_INFO:", (u8 *) cmd, | 547 | lbs_dbg_hex("11D: 802_11D_DOMAIN_INFO:", (u8 *) cmd, |
@@ -633,10 +633,10 @@ int libertas_ret_802_11d_domain_info(wlan_private * priv, | |||
633 | } | 633 | } |
634 | 634 | ||
635 | switch (action) { | 635 | switch (action) { |
636 | case cmd_act_set: /*Proc Set action */ | 636 | case CMD_ACT_SET: /*Proc Set action */ |
637 | break; | 637 | break; |
638 | 638 | ||
639 | case cmd_act_get: | 639 | case CMD_ACT_GET: |
640 | break; | 640 | break; |
641 | default: | 641 | default: |
642 | lbs_deb_11d("Invalid action:%d\n", domaininfo->action); | 642 | lbs_deb_11d("Invalid action:%d\n", domaininfo->action); |