diff options
author | Lennert Buytenhek <buytenh@wantstofly.org> | 2009-07-16 05:50:36 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-08-20 11:38:04 -0400 |
commit | ff45fc60ad583f45ecf10a41f7dbecf78519bcc1 (patch) | |
tree | fc2e06f76400b6c6fe8c2126efc21e6b5ea4b58b /drivers/net/wireless/mwl8k.c | |
parent | d89173f25228b8795af2d4b53e985cc44c729332 (diff) |
mwl8k: sort firmware command list by opcode, and trim unused commands
Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/mwl8k.c')
-rw-r--r-- | drivers/net/wireless/mwl8k.c | 42 |
1 files changed, 19 insertions, 23 deletions
diff --git a/drivers/net/wireless/mwl8k.c b/drivers/net/wireless/mwl8k.c index e8febab61350..682b82071a0b 100644 --- a/drivers/net/wireless/mwl8k.c +++ b/drivers/net/wireless/mwl8k.c | |||
@@ -307,25 +307,23 @@ static const struct ieee80211_rate mwl8k_rates[] = { | |||
307 | #define MWL8K_CMD_GET_HW_SPEC 0x0003 | 307 | #define MWL8K_CMD_GET_HW_SPEC 0x0003 |
308 | #define MWL8K_CMD_MAC_MULTICAST_ADR 0x0010 | 308 | #define MWL8K_CMD_MAC_MULTICAST_ADR 0x0010 |
309 | #define MWL8K_CMD_GET_STAT 0x0014 | 309 | #define MWL8K_CMD_GET_STAT 0x0014 |
310 | #define MWL8K_CMD_RADIO_CONTROL 0x001C | 310 | #define MWL8K_CMD_RADIO_CONTROL 0x001c |
311 | #define MWL8K_CMD_RF_TX_POWER 0x001E | 311 | #define MWL8K_CMD_RF_TX_POWER 0x001e |
312 | #define MWL8K_CMD_SET_PRE_SCAN 0x0107 | 312 | #define MWL8K_CMD_SET_PRE_SCAN 0x0107 |
313 | #define MWL8K_CMD_SET_POST_SCAN 0x0108 | 313 | #define MWL8K_CMD_SET_POST_SCAN 0x0108 |
314 | #define MWL8K_CMD_SET_RF_CHANNEL 0x010A | 314 | #define MWL8K_CMD_SET_RF_CHANNEL 0x010a |
315 | #define MWL8K_CMD_SET_AID 0x010d | ||
316 | #define MWL8K_CMD_SET_RATE 0x0110 | ||
317 | #define MWL8K_CMD_SET_FINALIZE_JOIN 0x0111 | ||
318 | #define MWL8K_CMD_RTS_THRESHOLD 0x0113 | ||
315 | #define MWL8K_CMD_SET_SLOT 0x0114 | 319 | #define MWL8K_CMD_SET_SLOT 0x0114 |
320 | #define MWL8K_CMD_SET_EDCA_PARAMS 0x0115 | ||
321 | #define MWL8K_CMD_SET_WMM_MODE 0x0123 | ||
316 | #define MWL8K_CMD_MIMO_CONFIG 0x0125 | 322 | #define MWL8K_CMD_MIMO_CONFIG 0x0125 |
323 | #define MWL8K_CMD_USE_FIXED_RATE 0x0126 | ||
317 | #define MWL8K_CMD_ENABLE_SNIFFER 0x0150 | 324 | #define MWL8K_CMD_ENABLE_SNIFFER 0x0150 |
318 | #define MWL8K_CMD_SET_WMM_MODE 0x0123 | ||
319 | #define MWL8K_CMD_SET_EDCA_PARAMS 0x0115 | ||
320 | #define MWL8K_CMD_SET_FINALIZE_JOIN 0x0111 | ||
321 | #define MWL8K_CMD_UPDATE_STADB 0x1123 | ||
322 | #define MWL8K_CMD_SET_RATEADAPT_MODE 0x0203 | 325 | #define MWL8K_CMD_SET_RATEADAPT_MODE 0x0203 |
323 | #define MWL8K_CMD_SET_LINKADAPT_MODE 0x0129 | 326 | #define MWL8K_CMD_UPDATE_STADB 0x1123 |
324 | #define MWL8K_CMD_SET_AID 0x010d | ||
325 | #define MWL8K_CMD_SET_RATE 0x0110 | ||
326 | #define MWL8K_CMD_USE_FIXED_RATE 0x0126 | ||
327 | #define MWL8K_CMD_RTS_THRESHOLD 0x0113 | ||
328 | #define MWL8K_CMD_ENCRYPTION 0x1122 | ||
329 | 327 | ||
330 | static const char *mwl8k_cmd_name(u16 cmd, char *buf, int bufsize) | 328 | static const char *mwl8k_cmd_name(u16 cmd, char *buf, int bufsize) |
331 | { | 329 | { |
@@ -343,20 +341,18 @@ static const char *mwl8k_cmd_name(u16 cmd, char *buf, int bufsize) | |||
343 | MWL8K_CMDNAME(SET_PRE_SCAN); | 341 | MWL8K_CMDNAME(SET_PRE_SCAN); |
344 | MWL8K_CMDNAME(SET_POST_SCAN); | 342 | MWL8K_CMDNAME(SET_POST_SCAN); |
345 | MWL8K_CMDNAME(SET_RF_CHANNEL); | 343 | MWL8K_CMDNAME(SET_RF_CHANNEL); |
344 | MWL8K_CMDNAME(SET_AID); | ||
345 | MWL8K_CMDNAME(SET_RATE); | ||
346 | MWL8K_CMDNAME(SET_FINALIZE_JOIN); | ||
347 | MWL8K_CMDNAME(RTS_THRESHOLD); | ||
346 | MWL8K_CMDNAME(SET_SLOT); | 348 | MWL8K_CMDNAME(SET_SLOT); |
349 | MWL8K_CMDNAME(SET_EDCA_PARAMS); | ||
350 | MWL8K_CMDNAME(SET_WMM_MODE); | ||
347 | MWL8K_CMDNAME(MIMO_CONFIG); | 351 | MWL8K_CMDNAME(MIMO_CONFIG); |
352 | MWL8K_CMDNAME(USE_FIXED_RATE); | ||
348 | MWL8K_CMDNAME(ENABLE_SNIFFER); | 353 | MWL8K_CMDNAME(ENABLE_SNIFFER); |
349 | MWL8K_CMDNAME(SET_WMM_MODE); | ||
350 | MWL8K_CMDNAME(SET_EDCA_PARAMS); | ||
351 | MWL8K_CMDNAME(SET_FINALIZE_JOIN); | ||
352 | MWL8K_CMDNAME(UPDATE_STADB); | ||
353 | MWL8K_CMDNAME(SET_RATEADAPT_MODE); | 354 | MWL8K_CMDNAME(SET_RATEADAPT_MODE); |
354 | MWL8K_CMDNAME(SET_LINKADAPT_MODE); | 355 | MWL8K_CMDNAME(UPDATE_STADB); |
355 | MWL8K_CMDNAME(SET_AID); | ||
356 | MWL8K_CMDNAME(SET_RATE); | ||
357 | MWL8K_CMDNAME(USE_FIXED_RATE); | ||
358 | MWL8K_CMDNAME(RTS_THRESHOLD); | ||
359 | MWL8K_CMDNAME(ENCRYPTION); | ||
360 | default: | 356 | default: |
361 | snprintf(buf, bufsize, "0x%x", cmd); | 357 | snprintf(buf, bufsize, "0x%x", cmd); |
362 | } | 358 | } |