qcacmn: Add NULL check for MLO dev context

MLO dev context is accessed without NULL check.
Add NULL check before accessing the MLO dev context.

Change-Id: I51d672924dbbf70cbf4b7e4951a3a45d4fd551ec
CRs-Fixed: 3409901
This commit is contained in:
Shashikala Prabhu
2023-02-27 10:20:08 +05:30
committed by Madan Koyyalamudi
부모 6d5fea01f7
커밋 4ed5695ef3
2개의 변경된 파일41개의 추가작업 그리고 3개의 파일을 삭제

파일 보기

@@ -2128,6 +2128,20 @@ QDF_STATUS wlan_vdev_get_bss_peer_mac(struct wlan_objmgr_vdev *vdev,
*/
QDF_STATUS wlan_vdev_get_bss_peer_mld_mac(struct wlan_objmgr_vdev *vdev,
struct qdf_mac_addr *mld_mac);
/**
* wlan_vdev_get_mlo_dev_ctx() - get MLO dev context
* @vdev: VDEV object
*
* API to get MLO dev context pointer from vdev
*
* Return: MLO dev context pointer
*/
static inline struct wlan_mlo_dev_context *wlan_vdev_get_mlo_dev_ctx(
struct wlan_objmgr_vdev *vdev)
{
return vdev->mlo_dev_ctx;
}
#endif
/**