Răsfoiți Sursa

qcacld-3.0: fill vdev and pattern id for CoAP offload reply enable request

Pattern id and vdev id are not filled explicitly for
CoAP offload reply enable request, which will cause
failure when the ids are not 0.
To fix it, fill the vdev id and pattern id accordingly.

Change-Id: I74b4b26d08e48e9d08d041293cff6f4ab92272e1
CRs-Fixed: 3310734
Yu Wang 2 ani în urmă
părinte
comite
ad3a8266f9
1 a modificat fișierele cu 2 adăugiri și 0 ștergeri
  1. 2 0
      os_if/coap/src/wlan_cfg80211_coap.c

+ 2 - 0
os_if/coap/src/wlan_cfg80211_coap.c

@@ -188,6 +188,8 @@ wlan_cfg80211_coap_offload_reply_enable(struct wlan_objmgr_vdev *vdev,
 		return -EINVAL;
 	}
 
+	params.pattern_id = req_id;
+	params.vdev_id = wlan_vdev_get_id(vdev);
 	params.src_ip_v4 = nla_get_u32(attr);
 
 	attr = tb[COAP_ATTR(REPLY_FILTER)];