aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ipw2200.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2007-12-27 01:50:54 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:08:56 -0500
commit472caf8c8a534367be8954dacf7c9e0317bb7e89 (patch)
tree2c16f2b242658bf6981dc083e54538df8d219e10 /drivers/net/wireless/ipw2200.c
parent743b84d2fc87cc19ca1c1cd2a821225caba862b0 (diff)
ipw2200 fix: ->rt_chbitmask is le16
A couple of places forgot cpu_to_le16() in assignments to that field, even though right next to those in other branches of if-else we do it correctly. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ipw2200.c')
-rw-r--r--drivers/net/wireless/ipw2200.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/ipw2200.c b/drivers/net/wireless/ipw2200.c
index 5f4d39c9ece4..c0591bda0178 100644
--- a/drivers/net/wireless/ipw2200.c
+++ b/drivers/net/wireless/ipw2200.c
@@ -7792,7 +7792,7 @@ static void ipw_handle_data_packet_monitor(struct ipw_priv *priv,
7792 cpu_to_le16((IEEE80211_CHAN_CCK | IEEE80211_CHAN_2GHZ)); 7792 cpu_to_le16((IEEE80211_CHAN_CCK | IEEE80211_CHAN_2GHZ));
7793 } else { /* 802.11g */ 7793 } else { /* 802.11g */
7794 ipw_rt->rt_chbitmask = 7794 ipw_rt->rt_chbitmask =
7795 (IEEE80211_CHAN_OFDM | IEEE80211_CHAN_2GHZ); 7795 cpu_to_le16(IEEE80211_CHAN_OFDM | IEEE80211_CHAN_2GHZ);
7796 } 7796 }
7797 7797
7798 /* set the rate in multiples of 500k/s */ 7798 /* set the rate in multiples of 500k/s */
@@ -8009,7 +8009,7 @@ static void ipw_handle_promiscuous_rx(struct ipw_priv *priv,
8009 cpu_to_le16((IEEE80211_CHAN_CCK | IEEE80211_CHAN_2GHZ)); 8009 cpu_to_le16((IEEE80211_CHAN_CCK | IEEE80211_CHAN_2GHZ));
8010 } else { /* 802.11g */ 8010 } else { /* 802.11g */
8011 ipw_rt->rt_chbitmask = 8011 ipw_rt->rt_chbitmask =
8012 (IEEE80211_CHAN_OFDM | IEEE80211_CHAN_2GHZ); 8012 cpu_to_le16(IEEE80211_CHAN_OFDM | IEEE80211_CHAN_2GHZ);
8013 } 8013 }
8014 8014
8015 /* set the rate in multiples of 500k/s */ 8015 /* set the rate in multiples of 500k/s */