aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00/rt2x00mac.c
diff options
context:
space:
mode:
authorIvo van Doorn <ivdoorn@gmail.com>2010-06-29 15:38:55 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-06-30 15:00:49 -0400
commitf1aa4c541e98afa8b770a75ccaa8504d0bff44a7 (patch)
tree02c2cf118fe196dc5b9ba8bcd02c35a7f36a139a /drivers/net/wireless/rt2x00/rt2x00mac.c
parent1df90809f79b765fd4e8868c2b182d948f198a17 (diff)
rt2x00: Write the BSSID to register when interface is added
For the Master mode case, we initialized the BSSID as the MAC address, but never wrote it into the registers. This causes Hardware crypto to break in Master mode when receiving frames which require the BSSID to be filled in. This is safe for STA mode since the BSSID will be initialized to 00:00:00:00:00 at this point, but will be set to the correct value later when the device associates. Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com> Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com> Acked-by: Gertjan van Wingerde <gwingerde@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00mac.c')
-rw-r--r--drivers/net/wireless/rt2x00/rt2x00mac.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00mac.c b/drivers/net/wireless/rt2x00/rt2x00mac.c
index abbd857ec759..2071cf321faf 100644
--- a/drivers/net/wireless/rt2x00/rt2x00mac.c
+++ b/drivers/net/wireless/rt2x00/rt2x00mac.c
@@ -282,7 +282,8 @@ int rt2x00mac_add_interface(struct ieee80211_hw *hw,
282 * has been initialized. Otherwise the device can reset 282 * has been initialized. Otherwise the device can reset
283 * the MAC registers. 283 * the MAC registers.
284 */ 284 */
285 rt2x00lib_config_intf(rt2x00dev, intf, vif->type, intf->mac, NULL); 285 rt2x00lib_config_intf(rt2x00dev, intf, vif->type,
286 intf->mac, intf->bssid);
286 287
287 /* 288 /*
288 * Some filters depend on the current working mode. We can force 289 * Some filters depend on the current working mode. We can force