|
@@ -2123,8 +2123,16 @@ static u16 check_ext_capab(struct hostapd_data *hapd, struct sta_info *sta,
|
|
|
}
|
|
|
#endif /* CONFIG_INTERWORKING */
|
|
|
|
|
|
- if (ext_capab_ie_len > 0)
|
|
|
+ if (ext_capab_ie_len > 0) {
|
|
|
sta->ecsa_supported = !!(ext_capab_ie[0] & BIT(2));
|
|
|
+ os_free(sta->ext_capability);
|
|
|
+ sta->ext_capability = os_malloc(1 + ext_capab_ie_len);
|
|
|
+ if (sta->ext_capability) {
|
|
|
+ sta->ext_capability[0] = ext_capab_ie_len;
|
|
|
+ os_memcpy(sta->ext_capability + 1, ext_capab_ie,
|
|
|
+ ext_capab_ie_len);
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
return WLAN_STATUS_SUCCESS;
|
|
|
}
|