|
@@ -3829,6 +3829,7 @@ int ieee802_11_mgmt(struct hostapd_data *hapd, const u8 *buf, size_t len,
|
|
|
u16 fc, stype;
|
|
|
int ret = 0;
|
|
|
unsigned int freq;
|
|
|
+ int ssi_signal = fi ? fi->ssi_signal : 0;
|
|
|
|
|
|
if (len < 24)
|
|
|
return 0;
|
|
@@ -3864,7 +3865,7 @@ int ieee802_11_mgmt(struct hostapd_data *hapd, const u8 *buf, size_t len,
|
|
|
|
|
|
|
|
|
if (stype == WLAN_FC_STYPE_PROBE_REQ) {
|
|
|
- handle_probe_req(hapd, mgmt, len, fi->ssi_signal);
|
|
|
+ handle_probe_req(hapd, mgmt, len, ssi_signal);
|
|
|
return 1;
|
|
|
}
|
|
|
|
|
@@ -3879,7 +3880,7 @@ int ieee802_11_mgmt(struct hostapd_data *hapd, const u8 *buf, size_t len,
|
|
|
}
|
|
|
|
|
|
if (hapd->iconf->track_sta_max_num)
|
|
|
- sta_track_add(hapd->iface, mgmt->sa, fi->ssi_signal);
|
|
|
+ sta_track_add(hapd->iface, mgmt->sa, ssi_signal);
|
|
|
|
|
|
switch (stype) {
|
|
|
case WLAN_FC_STYPE_AUTH:
|