From 5795da258fd20dac0f5a49a58fd4ea62c61cb237 Mon Sep 17 00:00:00 2001 From: Chun-Yeow Yeoh Date: Fri, 14 Nov 2014 12:50:09 +0800 Subject: [PATCH] ath9k_htc_firmware: check only the mesh control present subfield This is related to the previous patch "fix the offset of CCMP header for mesh data frame". Check only the Mesh Control Present subfield on QoS Control field to determine whether it is a mesh data frame. Signed-off-by: Chun-Yeow Yeoh --- target_firmware/wlan/ieee80211_output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target_firmware/wlan/ieee80211_output.c b/target_firmware/wlan/ieee80211_output.c index 3d68704..1230e2c 100755 --- a/target_firmware/wlan/ieee80211_output.c +++ b/target_firmware/wlan/ieee80211_output.c @@ -74,7 +74,7 @@ ieee80211_tgt_crypto_encap(struct ieee80211_frame *wh, /* set the offset to 32 if the mesh control field is present */ wh_mesh = (struct ieee80211_qosframe_addr4 *)wh; - if (wh_mesh->i_qos[1] == 0x01) + if (wh_mesh->i_qos[1] & 0x01) offset = 32; iv = (a_uint8_t *) wh; -- 2.31.1