Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 12fb0bd4 authored by Kiran Kumar Lokere's avatar Kiran Kumar Lokere Committed by Gerrit - the friendly Code Review server
Browse files

qcacld-3.0: Fix the TWT suspend command parse failure

Correct the attribute policy for TWT suspend to fix the command
parsing failure.

Change-Id: I6078c2e199ed13433c3dea532e3bbe396dd6ad8a
CRs-Fixed: 2872500
parent f294514c
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -2099,13 +2099,15 @@ static int hdd_twt_pause_session(struct hdd_adapter *adapter,
	params.vdev_id = adapter->vdev_id;

	ret = wlan_cfg80211_nla_parse_nested(tb,
					     QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX,
				      QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAX,
				      twt_param_attr,
					     qca_wlan_vendor_twt_add_dialog_policy);
	if (ret)
				      qca_wlan_vendor_twt_nudge_dialog_policy);
	if (ret) {
		hdd_debug("TWT: command parsing failed");
		return ret;
	}

	id = QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID;
	id = QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID;
	if (tb[id]) {
		params.dialog_id = nla_get_u8(tb[id]);
	} else {