|
@@ -4766,6 +4766,13 @@ static void lim_set_pdev_ht_ie(tpAniSirGlobal mac_ctx, uint8_t pdev_id,
|
|
|
p_ie = lim_get_ie_ptr_new(mac_ctx, ie_params->ie_ptr,
|
|
|
ie_params->ie_len,
|
|
|
DOT11F_EID_HTCAPS, ONE_BYTE);
|
|
|
+ if (NULL == p_ie) {
|
|
|
+ qdf_mem_free(ie_params->ie_ptr);
|
|
|
+ qdf_mem_free(ie_params);
|
|
|
+ lim_log(mac_ctx, LOGE,
|
|
|
+ FL("failed to get IE ptr"));
|
|
|
+ return;
|
|
|
+ }
|
|
|
p_ht_cap = (tHtCaps *)&p_ie[2];
|
|
|
p_ht_cap->supportedMCSSet[1] = 0;
|
|
|
p_ht_cap->txSTBC = 0;
|
|
@@ -4835,6 +4842,13 @@ static void lim_set_pdev_vht_ie(tpAniSirGlobal mac_ctx, uint8_t pdev_id,
|
|
|
p_ie = lim_get_ie_ptr_new(mac_ctx, ie_params->ie_ptr,
|
|
|
ie_params->ie_len,
|
|
|
DOT11F_EID_VHTCAPS, ONE_BYTE);
|
|
|
+ if (NULL == p_ie) {
|
|
|
+ qdf_mem_free(ie_params->ie_ptr);
|
|
|
+ qdf_mem_free(ie_params);
|
|
|
+ lim_log(mac_ctx, LOGE,
|
|
|
+ FL("failed to get IE ptr"));
|
|
|
+ return;
|
|
|
+ }
|
|
|
vht_cap = (tSirMacVHTCapabilityInfo *)&p_ie[2];
|
|
|
vht_cap->txSTBC = 0;
|
|
|
vht_mcs =
|