diff options
author | Lennert Buytenhek <buytenh@wantstofly.org> | 2009-08-03 15:58:39 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-08-07 13:09:29 -0400 |
commit | 4ff6432ea620ba467e50ec04b8271ea0eb94e62e (patch) | |
tree | 19610b87d0fd0047154f6b05cf4c26ec351213ed /drivers/net/wireless/mwl8k.c | |
parent | d25f9f1357139bbdc79bc960ea84909a7c22ec2b (diff) |
mwl8k: add various missing GET_HW_SPEC endian conversions
Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
Acked-by: Nicolas Pitre <nico@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 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/mwl8k.c b/drivers/net/wireless/mwl8k.c index 71f3eb67981e..9643aa4751c9 100644 --- a/drivers/net/wireless/mwl8k.c +++ b/drivers/net/wireless/mwl8k.c | |||
@@ -1656,18 +1656,18 @@ static int mwl8k_cmd_get_hw_spec(struct ieee80211_hw *hw) | |||
1656 | memset(cmd->perm_addr, 0xff, sizeof(cmd->perm_addr)); | 1656 | memset(cmd->perm_addr, 0xff, sizeof(cmd->perm_addr)); |
1657 | cmd->ps_cookie = cpu_to_le32(priv->cookie_dma); | 1657 | cmd->ps_cookie = cpu_to_le32(priv->cookie_dma); |
1658 | cmd->rx_queue_ptr = cpu_to_le32(priv->rxq[0].rx_desc_dma); | 1658 | cmd->rx_queue_ptr = cpu_to_le32(priv->rxq[0].rx_desc_dma); |
1659 | cmd->num_tx_queues = MWL8K_TX_QUEUES; | 1659 | cmd->num_tx_queues = cpu_to_le32(MWL8K_TX_QUEUES); |
1660 | for (i = 0; i < MWL8K_TX_QUEUES; i++) | 1660 | for (i = 0; i < MWL8K_TX_QUEUES; i++) |
1661 | cmd->tx_queue_ptrs[i] = cpu_to_le32(priv->txq[i].tx_desc_dma); | 1661 | cmd->tx_queue_ptrs[i] = cpu_to_le32(priv->txq[i].tx_desc_dma); |
1662 | cmd->num_tx_desc_per_queue = MWL8K_TX_DESCS; | 1662 | cmd->num_tx_desc_per_queue = cpu_to_le32(MWL8K_TX_DESCS); |
1663 | cmd->total_rx_desc = MWL8K_RX_DESCS; | 1663 | cmd->total_rx_desc = cpu_to_le32(MWL8K_RX_DESCS); |
1664 | 1664 | ||
1665 | rc = mwl8k_post_cmd(hw, &cmd->header); | 1665 | rc = mwl8k_post_cmd(hw, &cmd->header); |
1666 | 1666 | ||
1667 | if (!rc) { | 1667 | if (!rc) { |
1668 | SET_IEEE80211_PERM_ADDR(hw, cmd->perm_addr); | 1668 | SET_IEEE80211_PERM_ADDR(hw, cmd->perm_addr); |
1669 | priv->num_mcaddrs = le16_to_cpu(cmd->num_mcaddrs); | 1669 | priv->num_mcaddrs = le16_to_cpu(cmd->num_mcaddrs); |
1670 | priv->fw_rev = cmd->fw_rev; | 1670 | priv->fw_rev = le32_to_cpu(cmd->fw_rev); |
1671 | priv->hw_rev = cmd->hw_rev; | 1671 | priv->hw_rev = cmd->hw_rev; |
1672 | priv->region_code = le16_to_cpu(cmd->region_code); | 1672 | priv->region_code = le16_to_cpu(cmd->region_code); |
1673 | } | 1673 | } |