aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas/scan.c
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2007-08-02 11:31:18 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:49:43 -0400
commit0aef64d75851c9f3545d0793f26486ed862306d8 (patch)
tree5cf333e35691636ce1dc728c749679359677cb66 /drivers/net/wireless/libertas/scan.c
parentb44898eb2c917cd397a0d8654f1c249dd3cdc67e (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/scan.c')
-rw-r--r--drivers/net/wireless/libertas/scan.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/net/wireless/libertas/scan.c b/drivers/net/wireless/libertas/scan.c
index 2937f79c4a01..2cac47fc4cd9 100644
--- a/drivers/net/wireless/libertas/scan.c
+++ b/drivers/net/wireless/libertas/scan.c
@@ -255,7 +255,7 @@ static void wlan_scan_create_channel_list(wlan_private * priv,
255 255
256 for (rgnidx = 0; rgnidx < ARRAY_SIZE(adapter->region_channel); rgnidx++) { 256 for (rgnidx = 0; rgnidx < ARRAY_SIZE(adapter->region_channel); rgnidx++) {
257 if (priv->adapter->enable11d && 257 if (priv->adapter->enable11d &&
258 adapter->connect_status != libertas_connected) { 258 adapter->connect_status != LIBERTAS_CONNECTED) {
259 /* Scan all the supported chan for the first scan */ 259 /* Scan all the supported chan for the first scan */
260 if (!adapter->universal_channel[rgnidx].valid) 260 if (!adapter->universal_channel[rgnidx].valid)
261 continue; 261 continue;
@@ -287,11 +287,11 @@ static void wlan_scan_create_channel_list(wlan_private * priv,
287 case BAND_G: 287 case BAND_G:
288 default: 288 default:
289 scanchanlist[chanidx].radiotype = 289 scanchanlist[chanidx].radiotype =
290 cmd_scan_radio_type_bg; 290 CMD_SCAN_RADIO_TYPE_BG;
291 break; 291 break;
292 } 292 }
293 293
294 if (scantype == cmd_scan_type_passive) { 294 if (scantype == CMD_SCAN_TYPE_PASSIVE) {
295 scanchanlist[chanidx].maxscantime = 295 scanchanlist[chanidx].maxscantime =
296 cpu_to_le16(MRVDRV_PASSIVE_SCAN_CHAN_TIME); 296 cpu_to_le16(MRVDRV_PASSIVE_SCAN_CHAN_TIME);
297 scanchanlist[chanidx].chanscanmode.passivescan = 297 scanchanlist[chanidx].chanscanmode.passivescan =
@@ -486,7 +486,7 @@ wlan_scan_setup_scan_config(wlan_private * priv,
486 486
487 scantype = puserscanin->chanlist[chanidx].scantype; 487 scantype = puserscanin->chanlist[chanidx].scantype;
488 488
489 if (scantype == cmd_scan_type_passive) { 489 if (scantype == CMD_SCAN_TYPE_PASSIVE) {
490 (pscanchanlist + 490 (pscanchanlist +
491 chanidx)->chanscanmode.passivescan = 1; 491 chanidx)->chanscanmode.passivescan = 1;
492 } else { 492 } else {
@@ -498,7 +498,7 @@ wlan_scan_setup_scan_config(wlan_private * priv,
498 scandur = 498 scandur =
499 puserscanin->chanlist[chanidx].scantime; 499 puserscanin->chanlist[chanidx].scantime;
500 } else { 500 } else {
501 if (scantype == cmd_scan_type_passive) { 501 if (scantype == CMD_SCAN_TYPE_PASSIVE) {
502 scandur = MRVDRV_PASSIVE_SCAN_CHAN_TIME; 502 scandur = MRVDRV_PASSIVE_SCAN_CHAN_TIME;
503 } else { 503 } else {
504 scandur = MRVDRV_ACTIVE_SCAN_CHAN_TIME; 504 scandur = MRVDRV_ACTIVE_SCAN_CHAN_TIME;
@@ -668,7 +668,7 @@ static int wlan_scan_channel_list(wlan_private * priv,
668 } 668 }
669 669
670 /* Send the scan command to the firmware with the specified cfg */ 670 /* Send the scan command to the firmware with the specified cfg */
671 ret = libertas_prepare_and_send_command(priv, cmd_802_11_scan, 0, 671 ret = libertas_prepare_and_send_command(priv, CMD_802_11_SCAN, 0,
672 0, 0, pscancfgout); 672 0, 0, pscancfgout);
673 if (scanned >= 2 && !full_scan) { 673 if (scanned >= 2 && !full_scan) {
674 ret = 0; 674 ret = 0;
@@ -816,7 +816,7 @@ int wlan_scan_networks(wlan_private * priv,
816 mutex_unlock(&adapter->lock); 816 mutex_unlock(&adapter->lock);
817#endif 817#endif
818 818
819 if (priv->adapter->connect_status == libertas_connected) { 819 if (priv->adapter->connect_status == LIBERTAS_CONNECTED) {
820 netif_carrier_on(priv->dev); 820 netif_carrier_on(priv->dev);
821 netif_wake_queue(priv->dev); 821 netif_wake_queue(priv->dev);
822 netif_carrier_on(priv->mesh_dev); 822 netif_carrier_on(priv->mesh_dev);
@@ -1603,8 +1603,8 @@ int libertas_get_scan(struct net_device *dev, struct iw_request_info *info,
1603 1603
1604 /* Update RSSI if current BSS is a locally created ad-hoc BSS */ 1604 /* Update RSSI if current BSS is a locally created ad-hoc BSS */
1605 if ((adapter->mode == IW_MODE_ADHOC) && adapter->adhoccreate) { 1605 if ((adapter->mode == IW_MODE_ADHOC) && adapter->adhoccreate) {
1606 libertas_prepare_and_send_command(priv, cmd_802_11_rssi, 0, 1606 libertas_prepare_and_send_command(priv, CMD_802_11_RSSI, 0,
1607 cmd_option_waitforrsp, 0, NULL); 1607 CMD_OPTION_WAITFORRSP, 0, NULL);
1608 } 1608 }
1609 1609
1610 mutex_lock(&adapter->lock); 1610 mutex_lock(&adapter->lock);
@@ -1680,7 +1680,7 @@ int libertas_cmd_80211_scan(wlan_private * priv,
1680 memcpy(pscan->bssid, pscancfg->bssid, ETH_ALEN); 1680 memcpy(pscan->bssid, pscancfg->bssid, ETH_ALEN);
1681 memcpy(pscan->tlvbuffer, pscancfg->tlvbuffer, pscancfg->tlvbufferlen); 1681 memcpy(pscan->tlvbuffer, pscancfg->tlvbuffer, pscancfg->tlvbufferlen);
1682 1682
1683 cmd->command = cpu_to_le16(cmd_802_11_scan); 1683 cmd->command = cpu_to_le16(CMD_802_11_SCAN);
1684 1684
1685 /* size is equal to the sizeof(fixed portions) + the TLV len + header */ 1685 /* size is equal to the sizeof(fixed portions) + the TLV len + header */
1686 cmd->size = cpu_to_le16(sizeof(pscan->bsstype) + ETH_ALEN 1686 cmd->size = cpu_to_le16(sizeof(pscan->bsstype) + ETH_ALEN