2015-05-05 23:49:25

by Brent Taylor

[permalink] [raw]
Subject: [PATCH 1/1] ath6kl: Fix multiple clients associating in AP mode

When one client is associated and connected to an ar6003 hw version
2.0 with firmware 3.1.1.149, and another client tries to connect, the
first client's MAC address is lost in the station list because the
"aid" is always "1". The structure "wmi_connect_event" has the "aid"
as the second byte in the message, but it should be the first byte.

This patch has been tested with linux-3.10.40, and should apply
cleanly to linux-4.1-rc1

Signed-off-by: Brent Taylor <[email protected]>

--- a/drivers/net/wireless/ath/ath6kl/wmi.h 2015-05-05
18:30:14.767029624 -0500
+++ b/drivers/net/wireless/ath/ath6kl/wmi.h 2015-05-05
18:30:21.359031473 -0500
@@ -1527,8 +1527,8 @@ struct wmi_connect_event {
__le32 nw_type;
} sta;
struct {
- u8 phymode;
u8 aid;
+ u8 phymode;
u8 mac_addr[ETH_ALEN];
u8 auth;
u8 keymgmt;


2015-05-08 13:28:31

by Kalle Valo

[permalink] [raw]
Subject: Re: [PATCH 1/1] ath6kl: Fix multiple clients associating in AP mode

Brent Taylor <[email protected]> writes:

> When one client is associated and connected to an ar6003 hw version
> 2.0 with firmware 3.1.1.149, and another client tries to connect, the
> first client's MAC address is lost in the station list because the
> "aid" is always "1". The structure "wmi_connect_event" has the "aid"
> as the second byte in the message, but it should be the first byte.
>
> This patch has been tested with linux-3.10.40, and should apply
> cleanly to linux-4.1-rc1
>
> Signed-off-by: Brent Taylor <[email protected]>

Odd, I don't see your patch in patchwork:

https://patchwork.kernel.org/project/linux-wireless/list/

> --- a/drivers/net/wireless/ath/ath6kl/wmi.h 2015-05-05
> 18:30:14.767029624 -0500
> +++ b/drivers/net/wireless/ath/ath6kl/wmi.h 2015-05-05
> 18:30:21.359031473 -0500

Ok, this looks broken and most likely the reason why it's not in
patchwork. Can you please resend and make sure that patchwork sees the
patch? It's best to use git-send-email to submit patches.

--
Kalle Valo