compat-wireless: brcm80211 adapt changes in mac80211
authorHauke Mehrtens <hauke@hauke-m.de>
Thu, 10 Feb 2011 15:26:28 +0000 (16:26 +0100)
committerLuis R. Rodriguez <lrodriguez@atheros.com>
Thu, 10 Feb 2011 17:47:08 +0000 (09:47 -0800)
The interface to mac80211 changes and brcm80211 uses the old one.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
patches/38-brcm80211-mac80211-backport.patch [new file with mode: 0644]

diff --git a/patches/38-brcm80211-mac80211-backport.patch b/patches/38-brcm80211-mac80211-backport.patch
new file mode 100644 (file)
index 0000000..329a119
--- /dev/null
@@ -0,0 +1,14 @@
+This patch is a temporary solution as long as staging uses an older 
+version of mac80211.
+
+--- a/drivers/staging/brcm80211/brcmfmac/wl_cfg80211.c
++++ b/drivers/staging/brcm80211/brcmfmac/wl_cfg80211.c
+@@ -2312,7 +2312,7 @@ static s32 wl_inform_single_bss(struct w
+       notif_bss_info->frame_len =
+           offsetof(struct ieee80211_mgmt,
+                    u.beacon.variable) + wl_get_ielen(wl);
+-      freq = ieee80211_channel_to_frequency(notif_bss_info->channel);
++      freq = ieee80211_channel_to_frequency(notif_bss_info->channel, notif_bss_info->band);
+       channel = ieee80211_get_channel(wiphy, freq);
+       WL_DBG("SSID : \"%s\", rssi %d, channel %d, capability : 0x04%x, bssid %pM\n",