diff options
author | Zhu Yi <yi.zhu@intel.com> | 2010-02-25 01:15:31 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-03-10 17:09:39 -0500 |
commit | 1da3f88222579135569ad52d1c82a7393cf87178 (patch) | |
tree | efd3f10e40b469f47c47682d5f815a8caea6f530 /drivers/net/wireless/iwmc3200wifi | |
parent | d281fd461dcb9b3d0dc46180bf6e90da3913079d (diff) |
iwmc3200wifi: typo fix and code cleanup
Fix wrong IWM_RX_TICKET_DROP_REASON_MSK macro define, typo and other
small cleanups.
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwmc3200wifi')
-rw-r--r-- | drivers/net/wireless/iwmc3200wifi/commands.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/iwmc3200wifi/rx.c | 7 | ||||
-rw-r--r-- | drivers/net/wireless/iwmc3200wifi/tx.c | 7 | ||||
-rw-r--r-- | drivers/net/wireless/iwmc3200wifi/umac.h | 2 |
4 files changed, 8 insertions, 10 deletions
diff --git a/drivers/net/wireless/iwmc3200wifi/commands.c b/drivers/net/wireless/iwmc3200wifi/commands.c index 9ef4fd045041..b5cbd2bfd52a 100644 --- a/drivers/net/wireless/iwmc3200wifi/commands.c +++ b/drivers/net/wireless/iwmc3200wifi/commands.c | |||
@@ -506,7 +506,7 @@ static int iwm_target_read(struct iwm_priv *iwm, __le32 address, | |||
506 | return ret; | 506 | return ret; |
507 | } | 507 | } |
508 | 508 | ||
509 | /* When succeding, the send_target routine returns the seq number */ | 509 | /* When succeeding, the send_target routine returns the seq number */ |
510 | seq_num = ret; | 510 | seq_num = ret; |
511 | 511 | ||
512 | ret = wait_event_interruptible_timeout(iwm->nonwifi_queue, | 512 | ret = wait_event_interruptible_timeout(iwm->nonwifi_queue, |
diff --git a/drivers/net/wireless/iwmc3200wifi/rx.c b/drivers/net/wireless/iwmc3200wifi/rx.c index c8a31be16885..5090a8a61887 100644 --- a/drivers/net/wireless/iwmc3200wifi/rx.c +++ b/drivers/net/wireless/iwmc3200wifi/rx.c | |||
@@ -869,16 +869,15 @@ static int iwm_mlme_remove_bss(struct iwm_priv *iwm, u8 *buf, | |||
869 | int i; | 869 | int i; |
870 | 870 | ||
871 | for (i = 0; i < le32_to_cpu(bss_rm->count); i++) { | 871 | for (i = 0; i < le32_to_cpu(bss_rm->count); i++) { |
872 | table_idx = (le16_to_cpu(bss_rm->entries[i]) | 872 | table_idx = le16_to_cpu(bss_rm->entries[i]) & |
873 | & IWM_BSS_REMOVE_INDEX_MSK); | 873 | IWM_BSS_REMOVE_INDEX_MSK; |
874 | list_for_each_entry_safe(bss, next, &iwm->bss_list, node) | 874 | list_for_each_entry_safe(bss, next, &iwm->bss_list, node) |
875 | if (bss->bss->table_idx == cpu_to_le16(table_idx)) { | 875 | if (bss->bss->table_idx == cpu_to_le16(table_idx)) { |
876 | struct ieee80211_mgmt *mgmt; | 876 | struct ieee80211_mgmt *mgmt; |
877 | 877 | ||
878 | mgmt = (struct ieee80211_mgmt *) | 878 | mgmt = (struct ieee80211_mgmt *) |
879 | (bss->bss->frame_buf); | 879 | (bss->bss->frame_buf); |
880 | IWM_DBG_MLME(iwm, ERR, | 880 | IWM_DBG_MLME(iwm, ERR, "BSS removed: %pM\n", |
881 | "BSS removed: %pM\n", | ||
882 | mgmt->bssid); | 881 | mgmt->bssid); |
883 | list_del(&bss->node); | 882 | list_del(&bss->node); |
884 | kfree(bss->bss); | 883 | kfree(bss->bss); |
diff --git a/drivers/net/wireless/iwmc3200wifi/tx.c b/drivers/net/wireless/iwmc3200wifi/tx.c index 406615c2c580..a20b936ae21f 100644 --- a/drivers/net/wireless/iwmc3200wifi/tx.c +++ b/drivers/net/wireless/iwmc3200wifi/tx.c | |||
@@ -451,7 +451,6 @@ void iwm_tx_worker(struct work_struct *work) | |||
451 | int iwm_xmit_frame(struct sk_buff *skb, struct net_device *netdev) | 451 | int iwm_xmit_frame(struct sk_buff *skb, struct net_device *netdev) |
452 | { | 452 | { |
453 | struct iwm_priv *iwm = ndev_to_iwm(netdev); | 453 | struct iwm_priv *iwm = ndev_to_iwm(netdev); |
454 | struct net_device *ndev = iwm_to_ndev(iwm); | ||
455 | struct wireless_dev *wdev = iwm_to_wdev(iwm); | 454 | struct wireless_dev *wdev = iwm_to_wdev(iwm); |
456 | struct iwm_tx_info *tx_info; | 455 | struct iwm_tx_info *tx_info; |
457 | struct iwm_tx_queue *txq; | 456 | struct iwm_tx_queue *txq; |
@@ -518,12 +517,12 @@ int iwm_xmit_frame(struct sk_buff *skb, struct net_device *netdev) | |||
518 | 517 | ||
519 | queue_work(iwm->txq[queue].wq, &iwm->txq[queue].worker); | 518 | queue_work(iwm->txq[queue].wq, &iwm->txq[queue].worker); |
520 | 519 | ||
521 | ndev->stats.tx_packets++; | 520 | netdev->stats.tx_packets++; |
522 | ndev->stats.tx_bytes += skb->len; | 521 | netdev->stats.tx_bytes += skb->len; |
523 | return NETDEV_TX_OK; | 522 | return NETDEV_TX_OK; |
524 | 523 | ||
525 | drop: | 524 | drop: |
526 | ndev->stats.tx_dropped++; | 525 | netdev->stats.tx_dropped++; |
527 | dev_kfree_skb_any(skb); | 526 | dev_kfree_skb_any(skb); |
528 | return NETDEV_TX_OK; | 527 | return NETDEV_TX_OK; |
529 | } | 528 | } |
diff --git a/drivers/net/wireless/iwmc3200wifi/umac.h b/drivers/net/wireless/iwmc3200wifi/umac.h index 7f54a145ca65..0cbba3ecc813 100644 --- a/drivers/net/wireless/iwmc3200wifi/umac.h +++ b/drivers/net/wireless/iwmc3200wifi/umac.h | |||
@@ -362,7 +362,7 @@ struct iwm_udma_out_wifi_hdr { | |||
362 | #define IWM_RX_TICKET_SPECIAL_SNAP_MSK 0x4 | 362 | #define IWM_RX_TICKET_SPECIAL_SNAP_MSK 0x4 |
363 | #define IWM_RX_TICKET_AMSDU_MSK 0x8 | 363 | #define IWM_RX_TICKET_AMSDU_MSK 0x8 |
364 | #define IWM_RX_TICKET_DROP_REASON_POS 4 | 364 | #define IWM_RX_TICKET_DROP_REASON_POS 4 |
365 | #define IWM_RX_TICKET_DROP_REASON_MSK (0x1F << RX_TICKET_FLAGS_DROP_REASON_POS) | 365 | #define IWM_RX_TICKET_DROP_REASON_MSK (0x1F << IWM_RX_TICKET_DROP_REASON_POS) |
366 | 366 | ||
367 | #define IWM_RX_DROP_NO_DROP 0x0 | 367 | #define IWM_RX_DROP_NO_DROP 0x0 |
368 | #define IWM_RX_DROP_BAD_CRC 0x1 | 368 | #define IWM_RX_DROP_BAD_CRC 0x1 |