Add QCA vendor attribute and event to indicate subnet change status
authorRavi Joshi <ravij@qca.qualcomm.com>
Mon, 16 Nov 2015 06:05:05 +0000 (22:05 -0800)
committerJouni Malinen <j@w1.fi>
Fri, 20 Nov 2015 09:03:06 +0000 (11:03 +0200)
commitf32227ed9ec95524d670f9936f5bf87d4e39fa2b
tree02c0129635ab4e2abbe173cae020deb9ed848546
parent6fb8b4bf84da1ced436db4658e052ddfe3718f47
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>
src/common/wpa_ctrl.h
src/drivers/driver.h
src/drivers/driver_nl80211_event.c
wpa_supplicant/events.c