Browse Source

qcacld-3.0: Fix incorrect TWT info frame enabled flag in status query

In TWT status query, the driver fills the TWT info frame enabled
flag if TWT info frame is disabled. This gives wrong information
to the userspace.

Set the TWT info frame flag appropriately if info_frame_disabled
flag is false.

Change-Id: I319da5aacaec792090c0eca05d2a4be8b280e3e0
CRs-Fixed: 2902548
Pragaspathi Thilagaraj 4 years ago
parent
commit
476d1fadb1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/hdd/src/wlan_hdd_twt.c

+ 1 - 1
core/hdd/src/wlan_hdd_twt.c

@@ -576,7 +576,7 @@ hdd_twt_pack_get_params_resp_nlmsg(struct wlan_objmgr_psoc *psoc,
 			}
 		}
 
-		if (params[i].info_frame_disabled) {
+		if (!params[i].info_frame_disabled) {
 			attr = QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED;
 			if (nla_put_flag(reply_skb, attr)) {
 				hdd_err("TWT: get_params put Info Enable fail");