aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/bss.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2009-12-27 22:42:51 (GMT)
committerJouni Malinen <j@w1.fi>2009-12-27 22:42:51 (GMT)
commitf0d126d3398d211e94895cc62b56d95ddb2171ac (patch)
treedde5d75dcc20478b6ee0c40d7c5fa43e0eabf038 /wpa_supplicant/bss.c
parent3a068632962f340fde5e507574ef3ff11553b17a (diff)
downloadhostap-f0d126d3398d211e94895cc62b56d95ddb2171ac.zip
hostap-f0d126d3398d211e94895cc62b56d95ddb2171ac.tar.gz
hostap-f0d126d3398d211e94895cc62b56d95ddb2171ac.tar.bz2
Add ctrl_iface events for BSS added/removed
Diffstat (limited to 'wpa_supplicant/bss.c')
-rw-r--r--wpa_supplicant/bss.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wpa_supplicant/bss.c b/wpa_supplicant/bss.c
index 0323458..96ab955 100644
--- a/wpa_supplicant/bss.c
+++ b/wpa_supplicant/bss.c
@@ -60,7 +60,7 @@ static void wpa_bss_remove(struct wpa_supplicant *wpa_s, struct wpa_bss *bss)
wpa_printf(MSG_DEBUG, "BSS: Remove id %u BSSID " MACSTR " SSID '%s'",
bss->id, MAC2STR(bss->bssid),
wpa_ssid_txt(bss->ssid, bss->ssid_len));
- wpas_notify_bss_removed(wpa_s, bss->bssid);
+ wpas_notify_bss_removed(wpa_s, bss->bssid, bss->id);
os_free(bss);
}
@@ -127,7 +127,7 @@ static void wpa_bss_add(struct wpa_supplicant *wpa_s,
wpa_s->num_bss++;
wpa_printf(MSG_DEBUG, "BSS: Add new id %u BSSID " MACSTR " SSID '%s'",
bss->id, MAC2STR(bss->bssid), wpa_ssid_txt(ssid, ssid_len));
- wpas_notify_bss_added(wpa_s, res->bssid);
+ wpas_notify_bss_added(wpa_s, bss->bssid, bss->id);
if (wpa_s->num_bss > WPA_BSS_MAX_COUNT) {
/* Remove the oldest entry */
wpa_bss_remove(wpa_s, dl_list_first(&wpa_s->bss,