|
@@ -13445,10 +13445,17 @@ static int __wlan_hdd_change_station(struct wiphy *wiphy,
|
|
|
StaParams.supported_oper_classes_len =
|
|
|
params->supported_oper_classes_len;
|
|
|
|
|
|
+ if (params->ext_capab_len >
|
|
|
+ sizeof(StaParams.extn_capability)) {
|
|
|
+ hdd_debug("received extn capabilities:%d, resetting it to max supported",
|
|
|
+ params->ext_capab_len);
|
|
|
+ params->ext_capab_len =
|
|
|
+ sizeof(StaParams.extn_capability);
|
|
|
+ }
|
|
|
if (0 != params->ext_capab_len)
|
|
|
qdf_mem_copy(StaParams.extn_capability,
|
|
|
params->ext_capab,
|
|
|
- sizeof(StaParams.extn_capability));
|
|
|
+ params->ext_capab_len);
|
|
|
|
|
|
if (NULL != params->ht_capa) {
|
|
|
StaParams.htcap_present = 1;
|