diff options
Diffstat (limited to 'drivers/net/wireless/ipw2100.c')
-rw-r--r-- | drivers/net/wireless/ipw2100.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/wireless/ipw2100.c b/drivers/net/wireless/ipw2100.c index dc3813b26440..2ab107f45793 100644 --- a/drivers/net/wireless/ipw2100.c +++ b/drivers/net/wireless/ipw2100.c | |||
@@ -2509,9 +2509,9 @@ static void isr_rx_monitor(struct ipw2100_priv *priv, int i, | |||
2509 | 2509 | ||
2510 | ipw_rt->rt_hdr.it_version = PKTHDR_RADIOTAP_VERSION; | 2510 | ipw_rt->rt_hdr.it_version = PKTHDR_RADIOTAP_VERSION; |
2511 | ipw_rt->rt_hdr.it_pad = 0; /* always good to zero */ | 2511 | ipw_rt->rt_hdr.it_pad = 0; /* always good to zero */ |
2512 | ipw_rt->rt_hdr.it_len = sizeof(struct ipw_rt_hdr); /* total hdr+data */ | 2512 | ipw_rt->rt_hdr.it_len = cpu_to_le16(sizeof(struct ipw_rt_hdr)); /* total hdr+data */ |
2513 | 2513 | ||
2514 | ipw_rt->rt_hdr.it_present = 1 << IEEE80211_RADIOTAP_DBM_ANTSIGNAL; | 2514 | ipw_rt->rt_hdr.it_present = cpu_to_le32(1 << IEEE80211_RADIOTAP_DBM_ANTSIGNAL); |
2515 | 2515 | ||
2516 | ipw_rt->rt_dbmsignal = status->rssi + IPW2100_RSSI_TO_DBM; | 2516 | ipw_rt->rt_dbmsignal = status->rssi + IPW2100_RSSI_TO_DBM; |
2517 | 2517 | ||
@@ -2558,7 +2558,7 @@ static int ipw2100_corruption_check(struct ipw2100_priv *priv, int i) | |||
2558 | #ifdef CONFIG_IPW2100_MONITOR | 2558 | #ifdef CONFIG_IPW2100_MONITOR |
2559 | return 0; | 2559 | return 0; |
2560 | #else | 2560 | #else |
2561 | switch (WLAN_FC_GET_TYPE(u->rx_data.header.frame_ctl)) { | 2561 | switch (WLAN_FC_GET_TYPE(le16_to_cpu(u->rx_data.header.frame_ctl))) { |
2562 | case IEEE80211_FTYPE_MGMT: | 2562 | case IEEE80211_FTYPE_MGMT: |
2563 | case IEEE80211_FTYPE_CTL: | 2563 | case IEEE80211_FTYPE_CTL: |
2564 | return 0; | 2564 | return 0; |
@@ -2677,7 +2677,7 @@ static void __ipw2100_rx_process(struct ipw2100_priv *priv) | |||
2677 | #endif | 2677 | #endif |
2678 | if (stats.len < sizeof(struct ieee80211_hdr_3addr)) | 2678 | if (stats.len < sizeof(struct ieee80211_hdr_3addr)) |
2679 | break; | 2679 | break; |
2680 | switch (WLAN_FC_GET_TYPE(u->rx_data.header.frame_ctl)) { | 2680 | switch (WLAN_FC_GET_TYPE(le16_to_cpu(u->rx_data.header.frame_ctl))) { |
2681 | case IEEE80211_FTYPE_MGMT: | 2681 | case IEEE80211_FTYPE_MGMT: |
2682 | ieee80211_rx_mgt(priv->ieee, | 2682 | ieee80211_rx_mgt(priv->ieee, |
2683 | &u->rx_data.header, &stats); | 2683 | &u->rx_data.header, &stats); |
@@ -7795,7 +7795,7 @@ static int ipw2100_wx_set_mlme(struct net_device *dev, | |||
7795 | { | 7795 | { |
7796 | struct ipw2100_priv *priv = ieee80211_priv(dev); | 7796 | struct ipw2100_priv *priv = ieee80211_priv(dev); |
7797 | struct iw_mlme *mlme = (struct iw_mlme *)extra; | 7797 | struct iw_mlme *mlme = (struct iw_mlme *)extra; |
7798 | u16 reason; | 7798 | __le16 reason; |
7799 | 7799 | ||
7800 | reason = cpu_to_le16(mlme->reason_code); | 7800 | reason = cpu_to_le16(mlme->reason_code); |
7801 | 7801 | ||