aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/events.c
diff options
context:
space:
mode:
authorRavi Joshi <ravij@qca.qualcomm.com>2015-11-16 06:05:05 (GMT)
committerJouni Malinen <j@w1.fi>2015-11-20 09:03:06 (GMT)
commitf32227ed9ec95524d670f9936f5bf87d4e39fa2b (patch)
tree02c0129635ab4e2abbe173cae020deb9ed848546 /wpa_supplicant/events.c
parent6fb8b4bf84da1ced436db4658e052ddfe3718f47 (diff)
downloadhostap-f32227ed9ec95524d670f9936f5bf87d4e39fa2b.zip
hostap-f32227ed9ec95524d670f9936f5bf87d4e39fa2b.tar.gz
hostap-f32227ed9ec95524d670f9936f5bf87d4e39fa2b.tar.bz2
Add QCA vendor attribute and event to indicate subnet change status
This allows offloaded roaming to inform user space of the change in IP subnet post roaming. The device may have roamed to a network which is in a different subnet which will result in IP connectivity loss. Indicating the change in subnet enables the user space to refresh the IP address or to perform IP subnet validation if unknown status is indicated. The driver indication is reported with a new event from wpa_supplicant in the following format: CTRL-EVENT-SUBNET-STATUS-UPDATE status=<0/1/2> where 0 = unknown 1 = IP subnet unchanged (can continue to use the old IP address) 2 = IP subnet changed (need to get a new IP address) Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/events.c')
-rw-r--r--wpa_supplicant/events.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c
index 9bd791b..547aa98 100644
--- a/wpa_supplicant/events.c
+++ b/wpa_supplicant/events.c
@@ -3256,6 +3256,11 @@ void wpa_supplicant_event(void *ctx, enum wpa_event_type event,
wpa_supplicant_event_assoc(wpa_s, data);
if (data && data->assoc_info.authorized)
wpa_supplicant_event_assoc_auth(wpa_s, data);
+ if (data) {
+ wpa_msg(wpa_s, MSG_INFO,
+ WPA_EVENT_SUBNET_STATUS_UPDATE "status=%u",
+ data->assoc_info.subnet_status);
+ }
break;
case EVENT_DISASSOC:
wpas_event_disassoc(wpa_s,