mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 08:07:32 -04:00
qcacld-3.0: Validate mac context before using it
Validate mac context before using it. Change-Id: I783e595d3be6288479e636a0263bdf885144cfb8 CRs-Fixed: 2668312
This commit is contained in:
parent
4f5348573a
commit
2bb2487491
1 changed files with 5 additions and 1 deletions
|
|
@ -8344,9 +8344,13 @@ QDF_STATUS lim_set_ch_phy_mode(struct wlan_objmgr_vdev *vdev, uint8_t dot11mode)
|
|||
enum channel_state ch_state;
|
||||
uint32_t start_ch_freq;
|
||||
|
||||
if (!mac_ctx) {
|
||||
pe_err("Invalid mac context");
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
mlme_obj = wlan_vdev_mlme_get_cmpt_obj(vdev);
|
||||
if (!mlme_obj) {
|
||||
wma_err("vdev component object is NULL");
|
||||
pe_err("vdev component object is NULL");
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
des_chan = vdev->vdev_mlme.des_chan;
|
||||
|
|
|
|||
Loading…
Reference in a new issue