brcm80211: fix sparse endianess error in mac80211_if.c
authorArend van Spriel <arend@broadcom.com>
Wed, 12 Oct 2011 18:51:15 +0000 (20:51 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 14 Oct 2011 18:48:17 +0000 (14:48 -0400)
The ht capabilities provided upon registration with mac80211 must
be in little endian. This was fixed adding cpu_to_le16() conversion.

Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/brcm80211/brcmsmac/mac80211_if.c

index 6ce773a..ac8d02b 100644 (file)
@@ -963,7 +963,7 @@ static int ieee_hw_rate_init(struct ieee80211_hw *hw)
                if (phy_type == PHY_TYPE_LCN) {
                        /* Single stream */
                        band->ht_cap.mcs.rx_mask[1] = 0;
-                       band->ht_cap.mcs.rx_highest = 72;
+                       band->ht_cap.mcs.rx_highest = cpu_to_le16(72);
                }
                hw->wiphy->bands[IEEE80211_BAND_2GHZ] = band;
        } else {