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/fw.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/fw.c')
-rw-r--r-- | drivers/net/wireless/libertas/fw.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/net/wireless/libertas/fw.c b/drivers/net/wireless/libertas/fw.c index 288e47c33555..39b0a094b626 100644 --- a/drivers/net/wireless/libertas/fw.c +++ b/drivers/net/wireless/libertas/fw.c | |||
@@ -99,8 +99,8 @@ static int wlan_setup_station_hw(wlan_private * priv, char *fw_name) | |||
99 | */ | 99 | */ |
100 | memset(adapter->current_addr, 0xff, ETH_ALEN); | 100 | memset(adapter->current_addr, 0xff, ETH_ALEN); |
101 | 101 | ||
102 | ret = libertas_prepare_and_send_command(priv, cmd_get_hw_spec, | 102 | ret = libertas_prepare_and_send_command(priv, CMD_GET_HW_SPEC, |
103 | 0, cmd_option_waitforrsp, 0, NULL); | 103 | 0, CMD_OPTION_WAITFORRSP, 0, NULL); |
104 | 104 | ||
105 | if (ret) { | 105 | if (ret) { |
106 | ret = -1; | 106 | ret = -1; |
@@ -110,9 +110,9 @@ static int wlan_setup_station_hw(wlan_private * priv, char *fw_name) | |||
110 | libertas_set_mac_packet_filter(priv); | 110 | libertas_set_mac_packet_filter(priv); |
111 | 111 | ||
112 | /* Get the supported Data rates */ | 112 | /* Get the supported Data rates */ |
113 | ret = libertas_prepare_and_send_command(priv, cmd_802_11_data_rate, | 113 | ret = libertas_prepare_and_send_command(priv, CMD_802_11_DATA_RATE, |
114 | cmd_act_get_tx_rate, | 114 | CMD_ACT_GET_tx_rate, |
115 | cmd_option_waitforrsp, 0, NULL); | 115 | CMD_OPTION_WAITFORRSP, 0, NULL); |
116 | 116 | ||
117 | if (ret) { | 117 | if (ret) { |
118 | ret = -1; | 118 | ret = -1; |
@@ -145,12 +145,12 @@ static int wlan_allocate_adapter(wlan_private * priv) | |||
145 | memset(&adapter->libertas_ps_confirm_sleep, 0, sizeof(struct PS_CMD_ConfirmSleep)); | 145 | memset(&adapter->libertas_ps_confirm_sleep, 0, sizeof(struct PS_CMD_ConfirmSleep)); |
146 | adapter->libertas_ps_confirm_sleep.seqnum = cpu_to_le16(++adapter->seqnum); | 146 | adapter->libertas_ps_confirm_sleep.seqnum = cpu_to_le16(++adapter->seqnum); |
147 | adapter->libertas_ps_confirm_sleep.command = | 147 | adapter->libertas_ps_confirm_sleep.command = |
148 | cpu_to_le16(cmd_802_11_ps_mode); | 148 | cpu_to_le16(CMD_802_11_PS_MODE); |
149 | adapter->libertas_ps_confirm_sleep.size = | 149 | adapter->libertas_ps_confirm_sleep.size = |
150 | cpu_to_le16(sizeof(struct PS_CMD_ConfirmSleep)); | 150 | cpu_to_le16(sizeof(struct PS_CMD_ConfirmSleep)); |
151 | adapter->libertas_ps_confirm_sleep.result = 0; | 151 | adapter->libertas_ps_confirm_sleep.result = 0; |
152 | adapter->libertas_ps_confirm_sleep.action = | 152 | adapter->libertas_ps_confirm_sleep.action = |
153 | cpu_to_le16(cmd_subcmd_sleep_confirmed); | 153 | cpu_to_le16(CMD_SUBCMD_SLEEP_CONFIRMED); |
154 | 154 | ||
155 | return 0; | 155 | return 0; |
156 | } | 156 | } |
@@ -168,14 +168,14 @@ static void wlan_init_adapter(wlan_private * priv) | |||
168 | /* ATIM params */ | 168 | /* ATIM params */ |
169 | adapter->atimwindow = 0; | 169 | adapter->atimwindow = 0; |
170 | 170 | ||
171 | adapter->connect_status = libertas_disconnected; | 171 | adapter->connect_status = LIBERTAS_DISCONNECTED; |
172 | memset(adapter->current_addr, 0xff, ETH_ALEN); | 172 | memset(adapter->current_addr, 0xff, ETH_ALEN); |
173 | 173 | ||
174 | /* scan type */ | 174 | /* scan type */ |
175 | adapter->scantype = cmd_scan_type_active; | 175 | adapter->scantype = CMD_SCAN_TYPE_ACTIVE; |
176 | 176 | ||
177 | /* scan mode */ | 177 | /* scan mode */ |
178 | adapter->scanmode = cmd_bss_type_any; | 178 | adapter->scanmode = CMD_BSS_TYPE_ANY; |
179 | 179 | ||
180 | /* 802.11 specific */ | 180 | /* 802.11 specific */ |
181 | adapter->secinfo.wep_enabled = 0; | 181 | adapter->secinfo.wep_enabled = 0; |
@@ -208,7 +208,7 @@ static void wlan_init_adapter(wlan_private * priv) | |||
208 | adapter->surpriseremoved = 0; | 208 | adapter->surpriseremoved = 0; |
209 | 209 | ||
210 | adapter->currentpacketfilter = | 210 | adapter->currentpacketfilter = |
211 | cmd_act_mac_rx_on | cmd_act_mac_tx_on; | 211 | CMD_ACT_MAC_RX_ON | CMD_ACT_MAC_TX_ON; |
212 | 212 | ||
213 | adapter->radioon = RADIO_ON; | 213 | adapter->radioon = RADIO_ON; |
214 | adapter->txantenna = RF_ANTENNA_2; | 214 | adapter->txantenna = RF_ANTENNA_2; |
@@ -220,7 +220,7 @@ static void wlan_init_adapter(wlan_private * priv) | |||
220 | // set default capabilities | 220 | // set default capabilities |
221 | adapter->capability = WLAN_CAPABILITY_SHORT_PREAMBLE; | 221 | adapter->capability = WLAN_CAPABILITY_SHORT_PREAMBLE; |
222 | 222 | ||
223 | adapter->psmode = wlan802_11powermodecam; | 223 | adapter->psmode = WLAN802_11POWERMODECAM; |
224 | adapter->multipledtim = MRVDRV_DEFAULT_MULTIPLE_DTIM; | 224 | adapter->multipledtim = MRVDRV_DEFAULT_MULTIPLE_DTIM; |
225 | 225 | ||
226 | adapter->listeninterval = MRVDRV_DEFAULT_LISTEN_INTERVAL; | 226 | adapter->listeninterval = MRVDRV_DEFAULT_LISTEN_INTERVAL; |