aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYogesh Ashok Powar <yogeshp@marvell.com>2012-01-17 05:15:15 -0500
committerJohn W. Linville <linville@tuxdriver.com>2012-01-17 10:12:27 -0500
commit604c4ef1c453a1b2ea2cdf04d2b49afec421ebfa (patch)
treeafa052c6f337e7bf1757a87cfed25dd854c14c3b
parent544204733a20200951c271f81c74930ba5424638 (diff)
mwl8k: Fixing Sparse ENDIAN CHECK warning
Fixing following sparse warning >drivers/net/wireless/mwl8k.c:2780:15: warning: incorrect type in assignment (different base types) >drivers/net/wireless/mwl8k.c:2780:15: expected restricted unsigned short [usertype] channel >drivers/net/wireless/mwl8k.c:2780:15: got unsigned short [unsigned] [usertype] hw_value Signed-off-by: Yogesh Ashok Powar <yogeshp@marvell.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/net/wireless/mwl8k.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/mwl8k.c b/drivers/net/wireless/mwl8k.c
index d187ea24798e..dd5aeaff44ba 100644
--- a/drivers/net/wireless/mwl8k.c
+++ b/drivers/net/wireless/mwl8k.c
@@ -2777,7 +2777,7 @@ static int mwl8k_cmd_tx_power(struct ieee80211_hw *hw,
2777 else if (channel->band == IEEE80211_BAND_5GHZ) 2777 else if (channel->band == IEEE80211_BAND_5GHZ)
2778 cmd->band = cpu_to_le16(0x4); 2778 cmd->band = cpu_to_le16(0x4);
2779 2779
2780 cmd->channel = channel->hw_value; 2780 cmd->channel = cpu_to_le16(channel->hw_value);
2781 2781
2782 if (conf->channel_type == NL80211_CHAN_NO_HT || 2782 if (conf->channel_type == NL80211_CHAN_NO_HT ||
2783 conf->channel_type == NL80211_CHAN_HT20) { 2783 conf->channel_type == NL80211_CHAN_HT20) {