|
@@ -226,9 +226,11 @@ static int __wlan_hdd_mgmt_tx(struct wiphy *wiphy, struct wireless_dev *wdev,
|
|
|
QDF_STATUS status;
|
|
|
struct net_device *dev = wdev->netdev;
|
|
|
struct hdd_adapter *adapter = WLAN_HDD_GET_PRIV_PTR(dev);
|
|
|
+ struct hdd_context *hdd_ctx = WLAN_HDD_GET_CTX(adapter);
|
|
|
uint8_t type;
|
|
|
uint8_t sub_type;
|
|
|
QDF_STATUS qdf_status;
|
|
|
+ int ret;
|
|
|
|
|
|
ENTER();
|
|
|
|
|
@@ -242,6 +244,12 @@ static int __wlan_hdd_mgmt_tx(struct wiphy *wiphy, struct wireless_dev *wdev,
|
|
|
return -EINVAL;
|
|
|
}
|
|
|
|
|
|
+ ret = wlan_hdd_validate_context(hdd_ctx);
|
|
|
+ if (ret) {
|
|
|
+ hdd_err("wlan_hdd_validate_context return:%d", ret);
|
|
|
+ return ret;
|
|
|
+ }
|
|
|
+
|
|
|
type = WLAN_HDD_GET_TYPE_FRM_FC(buf[0]);
|
|
|
sub_type = WLAN_HDD_GET_SUBTYPE_FRM_FC(buf[0]);
|
|
|
|