aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mwl8k.c
diff options
context:
space:
mode:
authorYogesh Ashok Powar <yogeshp@marvell.com>2011-04-08 14:55:37 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-04-12 16:58:53 -0400
commitba30c4a58ceb10e81dbf6bd80aeb6a4db42db8fe (patch)
tree2053c3ecaa66bfea8d581b235973bc4d4dbe14e0 /drivers/net/wireless/mwl8k.c
parent1296433bf39a8dea852aafad1f29b775f993bca1 (diff)
mwl8k: Fix checkpatch.pl and sparse warnings and errors
Fix checkpatch errors and warnings comprising of indent errors, spaces and __packed warnings. Also fix 'make C = 2' warnings. Signed-off-by: Yogesh Ashok Powar <yogeshp@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.c27
1 files changed, 13 insertions, 14 deletions
diff --git a/drivers/net/wireless/mwl8k.c b/drivers/net/wireless/mwl8k.c
index 8913180a7bd..fb472f4924d 100644
--- a/drivers/net/wireless/mwl8k.c
+++ b/drivers/net/wireless/mwl8k.c
@@ -701,7 +701,7 @@ static int mwl8k_load_firmware(struct ieee80211_hw *hw)
701 "helper image\n", pci_name(priv->pdev)); 701 "helper image\n", pci_name(priv->pdev));
702 return rc; 702 return rc;
703 } 703 }
704 msleep(5); 704 msleep(20);
705 705
706 rc = mwl8k_feed_fw_image(priv, fw->data, fw->size); 706 rc = mwl8k_feed_fw_image(priv, fw->data, fw->size);
707 } else { 707 } else {
@@ -823,8 +823,8 @@ static void mwl8k_encapsulate_tx_frame(struct sk_buff *skb)
823 /* 823 /*
824 * Make sure the packet header is in the DMA header format (4-address 824 * Make sure the packet header is in the DMA header format (4-address
825 * without QoS), the necessary crypto padding between the header and the 825 * without QoS), the necessary crypto padding between the header and the
826 * payload has already been provided by mac80211, but it doesn't add tail 826 * payload has already been provided by mac80211, but it doesn't add
827 * padding when HW crypto is enabled. 827 * tail padding when HW crypto is enabled.
828 * 828 *
829 * We have the following trailer padding requirements: 829 * We have the following trailer padding requirements:
830 * - WEP: 4 trailer bytes (ICV) 830 * - WEP: 4 trailer bytes (ICV)
@@ -1487,9 +1487,8 @@ static int mwl8k_tx_wait_empty(struct ieee80211_hw *hw)
1487 1487
1488 if (timeout) { 1488 if (timeout) {
1489 WARN_ON(priv->pending_tx_pkts); 1489 WARN_ON(priv->pending_tx_pkts);
1490 if (retry) { 1490 if (retry)
1491 wiphy_notice(hw->wiphy, "tx rings drained\n"); 1491 wiphy_notice(hw->wiphy, "tx rings drained\n");
1492 }
1493 break; 1492 break;
1494 } 1493 }
1495 1494
@@ -1649,8 +1648,8 @@ mwl8k_txq_reclaim(struct ieee80211_hw *hw, int index, int limit, int force)
1649 /* Rate control is happening in the firmware. 1648 /* Rate control is happening in the firmware.
1650 * Ensure no tx rate is being reported. 1649 * Ensure no tx rate is being reported.
1651 */ 1650 */
1652 info->status.rates[0].idx = -1; 1651 info->status.rates[0].idx = -1;
1653 info->status.rates[0].count = 1; 1652 info->status.rates[0].count = 1;
1654 1653
1655 if (MWL8K_TXD_SUCCESS(status)) 1654 if (MWL8K_TXD_SUCCESS(status))
1656 info->flags |= IEEE80211_TX_STAT_ACK; 1655 info->flags |= IEEE80211_TX_STAT_ACK;
@@ -1688,7 +1687,7 @@ static void mwl8k_txq_deinit(struct ieee80211_hw *hw, int index)
1688} 1687}
1689 1688
1690/* caller must hold priv->stream_lock when calling the stream functions */ 1689/* caller must hold priv->stream_lock when calling the stream functions */
1691struct mwl8k_ampdu_stream * 1690static struct mwl8k_ampdu_stream *
1692mwl8k_add_stream(struct ieee80211_hw *hw, struct ieee80211_sta *sta, u8 tid) 1691mwl8k_add_stream(struct ieee80211_hw *hw, struct ieee80211_sta *sta, u8 tid)
1693{ 1692{
1694 struct mwl8k_ampdu_stream *stream; 1693 struct mwl8k_ampdu_stream *stream;
@@ -2657,7 +2656,7 @@ struct mwl8k_cmd_tx_power {
2657 __le16 bw; 2656 __le16 bw;
2658 __le16 sub_ch; 2657 __le16 sub_ch;
2659 __le16 power_level_list[MWL8K_TX_POWER_LEVEL_TOTAL]; 2658 __le16 power_level_list[MWL8K_TX_POWER_LEVEL_TOTAL];
2660} __attribute__((packed)); 2659} __packed;
2661 2660
2662static int mwl8k_cmd_tx_power(struct ieee80211_hw *hw, 2661static int mwl8k_cmd_tx_power(struct ieee80211_hw *hw,
2663 struct ieee80211_conf *conf, 2662 struct ieee80211_conf *conf,
@@ -3520,13 +3519,13 @@ static int mwl8k_cmd_bss_start(struct ieee80211_hw *hw,
3520#define BASTREAM_FLAG_DIRECTION_UPSTREAM 0x00 3519#define BASTREAM_FLAG_DIRECTION_UPSTREAM 0x00
3521#define BASTREAM_FLAG_IMMEDIATE_TYPE 0x01 3520#define BASTREAM_FLAG_IMMEDIATE_TYPE 0x01
3522 3521
3523enum { 3522enum ba_stream_action_type {
3524 MWL8K_BA_CREATE, 3523 MWL8K_BA_CREATE,
3525 MWL8K_BA_UPDATE, 3524 MWL8K_BA_UPDATE,
3526 MWL8K_BA_DESTROY, 3525 MWL8K_BA_DESTROY,
3527 MWL8K_BA_FLUSH, 3526 MWL8K_BA_FLUSH,
3528 MWL8K_BA_CHECK, 3527 MWL8K_BA_CHECK,
3529} ba_stream_action_type; 3528};
3530 3529
3531 3530
3532struct mwl8k_create_ba_stream { 3531struct mwl8k_create_ba_stream {
@@ -3780,7 +3779,7 @@ struct mwl8k_cmd_update_encryption {
3780 __u8 mac_addr[6]; 3779 __u8 mac_addr[6];
3781 __u8 encr_type; 3780 __u8 encr_type;
3782 3781
3783} __attribute__((packed)); 3782} __packed;
3784 3783
3785struct mwl8k_cmd_set_key { 3784struct mwl8k_cmd_set_key {
3786 struct mwl8k_cmd_pkt header; 3785 struct mwl8k_cmd_pkt header;
@@ -3800,7 +3799,7 @@ struct mwl8k_cmd_set_key {
3800 __le16 tkip_tsc_low; 3799 __le16 tkip_tsc_low;
3801 __le32 tkip_tsc_high; 3800 __le32 tkip_tsc_high;
3802 __u8 mac_addr[6]; 3801 __u8 mac_addr[6];
3803} __attribute__((packed)); 3802} __packed;
3804 3803
3805enum { 3804enum {
3806 MWL8K_ENCR_ENABLE, 3805 MWL8K_ENCR_ENABLE,
@@ -4502,7 +4501,7 @@ mwl8k_bss_info_changed_sta(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
4502 struct ieee80211_bss_conf *info, u32 changed) 4501 struct ieee80211_bss_conf *info, u32 changed)
4503{ 4502{
4504 struct mwl8k_priv *priv = hw->priv; 4503 struct mwl8k_priv *priv = hw->priv;
4505 u32 ap_legacy_rates; 4504 u32 ap_legacy_rates = 0;
4506 u8 ap_mcs_rates[16]; 4505 u8 ap_mcs_rates[16];
4507 int rc; 4506 int rc;
4508 4507