From: Adrian Chadd Date: Sun, 16 Nov 2014 02:36:43 +0000 (-0800) Subject: Merge pull request #69 from chunyeow/master X-Git-Tag: 1.4.0^0 X-Git-Url: https://jxself.org/git/?p=open-ath9k-htc-firmware.git;a=commitdiff_plain;h=146bff1075a9f62c5d64c984bf6db502f8cd2671;hp=1bce676df33ed9ce2b53a95ef3a04e80b6a41e77 Merge pull request #69 from chunyeow/master ath9k_htc_firmware: check only the mesh control present subfield --- 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;