|
@@ -3398,7 +3398,7 @@ void hdd_stop_sap_set_tx_power(struct wlan_objmgr_psoc *psoc,
|
|
|
{
|
|
|
struct wlan_objmgr_vdev *vdev =
|
|
|
hdd_objmgr_get_vdev_by_user(adapter, WLAN_OSIF_ID);
|
|
|
- struct wlan_objmgr_pdev *pdev = wlan_vdev_get_pdev(vdev);
|
|
|
+ struct wlan_objmgr_pdev *pdev;
|
|
|
struct hdd_context *hdd_ctx = WLAN_HDD_GET_CTX(adapter);
|
|
|
struct qdf_mac_addr bssid;
|
|
|
struct wlan_regulatory_psoc_priv_obj *psoc_priv_obj;
|
|
@@ -3410,6 +3410,9 @@ void hdd_stop_sap_set_tx_power(struct wlan_objmgr_psoc *psoc,
|
|
|
uint32_t chan_freq;
|
|
|
bool is_valid_txpower = false;
|
|
|
|
|
|
+ if (!vdev)
|
|
|
+ return;
|
|
|
+ pdev = wlan_vdev_get_pdev(vdev);
|
|
|
hdd_objmgr_put_vdev_by_user(vdev, WLAN_OSIF_ID);
|
|
|
|
|
|
psoc_priv_obj = reg_get_psoc_obj(psoc);
|