浏览代码

Merge pull request #69 from chunyeow/master

ath9k_htc_firmware: check only the mesh control present subfield
Adrian Chadd 9 年之前
父节点
当前提交
11e04295ac
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      target_firmware/wlan/ieee80211_output.c

+ 1 - 1
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;