From kuohsianglu at gmail.com  Sat Dec  2 01:54:13 2017
From: kuohsianglu at gmail.com (Kenneth Lu)
Date: Sat, 2 Dec 2017 17:54:13 +0800
Subject: [PATCH] ath6kl: improve endianness handling
Message-ID: <20171202095413.GA12091@blackstone>

Replace ntohs with be16_to_cpu to do endian conversions for ethhdr
h_proto assignment.

Signed-off-by: Kenneth Lu <kuohsianglu at gmail.com>
---
 drivers/net/wireless/ath/ath6kl/txrx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/wireless/ath/ath6kl/txrx.c b/drivers/net/wireless/ath/ath6kl/txrx.c
index 1379906..8da9506 100644
--- a/drivers/net/wireless/ath/ath6kl/txrx.c
+++ b/drivers/net/wireless/ath/ath6kl/txrx.c
@@ -1001,7 +1001,7 @@ static void aggr_slice_amsdu(struct aggr_info *p_aggr,
 
 	while (amsdu_len > mac_hdr_len) {
 		hdr = (struct ethhdr *) framep;
-		payload_8023_len = ntohs(hdr->h_proto);
+		payload_8023_len = be16_to_cpu(hdr->h_proto);
 
 		if (payload_8023_len < MIN_MSDU_SUBFRAME_PAYLOAD_LEN ||
 		    payload_8023_len > MAX_MSDU_SUBFRAME_PAYLOAD_LEN) {
-- 
2.7.4



From kvalo at qca.qualcomm.com  Thu Dec  7 06:21:28 2017
From: kvalo at qca.qualcomm.com (Kalle Valo)
Date: Thu, 7 Dec 2017 15:21:28 +0100
Subject: ath6kl: remove redundant variable ies_len
In-Reply-To: <20171126053818.GA6602@blackstone>
References: <20171126053818.GA6602@blackstone>
Message-ID: <32f7ac8db56840b08cb75f504e28d509@euamsexm01a.eu.qualcomm.com>

Kenneth Lu <kuohsianglu at gmail.com> wrote:

> To get rid of W=1 warning: variable ?ies_len? set but not used.
> Variable ies_len is being assigned but never read.
> 
> Signed-off-by: Kenneth Lu <kuohsianglu at gmail.com>
> Reviewed-by: Steve deRosier <derosier at gmail.com>
> Signed-off-by: Kalle Valo <kvalo at qca.qualcomm.com>

Patch applied to ath-next branch of ath.git, thanks.

d786ebb2f59b ath6kl: remove redundant variable ies_len

-- 
https://patchwork.kernel.org/patch/10075235/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches



From kvalo at qca.qualcomm.com  Thu Dec  7 06:36:22 2017
From: kvalo at qca.qualcomm.com (Kalle Valo)
Date: Thu, 7 Dec 2017 15:36:22 +0100
Subject: ath6kl: improve endianness handling
In-Reply-To: <20171202095413.GA12091@blackstone>
References: <20171202095413.GA12091@blackstone>
Message-ID: <a9fb908e4549497983af2e51b1535c52@euamsexm01a.eu.qualcomm.com>

Kenneth Lu <kuohsianglu at gmail.com> wrote:

> Replace ntohs with be16_to_cpu to do endian conversions for ethhdr
> h_proto assignment.
> 
> Signed-off-by: Kenneth Lu <kuohsianglu at gmail.com>
> Signed-off-by: Kalle Valo <kvalo at qca.qualcomm.com>

Patch applied to ath-next branch of ath.git, thanks.

5d24bcd56dc7 ath6kl: improve endianness handling

-- 
https://patchwork.kernel.org/patch/10088565/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches



