Commit 71a301bb authored by Eliad Peller's avatar Eliad Peller Committed by John W. Linville

wlcore: use correct LAA bit

The LAA bit is second bit of the MSB, not of the
third byte.
Signed-off-by: default avatarEliad Peller <eliad@wizery.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 601d6c4e
...@@ -5661,7 +5661,7 @@ static void wl12xx_derive_mac_addresses(struct wl1271 *wl, u32 oui, u32 nic) ...@@ -5661,7 +5661,7 @@ static void wl12xx_derive_mac_addresses(struct wl1271 *wl, u32 oui, u32 nic)
memcpy(&wl->addresses[idx], &wl->addresses[0], memcpy(&wl->addresses[idx], &wl->addresses[0],
sizeof(wl->addresses[0])); sizeof(wl->addresses[0]));
/* LAA bit */ /* LAA bit */
wl->addresses[idx].addr[2] |= BIT(1); wl->addresses[idx].addr[0] |= BIT(1);
} }
wl->hw->wiphy->n_addresses = WLCORE_NUM_MAC_ADDRESSES; wl->hw->wiphy->n_addresses = WLCORE_NUM_MAC_ADDRESSES;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment