aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVasanthakumar Thiagarajan <vthiagar@qti.qualcomm.com>2017-03-08 05:13:17 (GMT)
committerJouni Malinen <j@w1.fi>2017-03-09 15:01:36 (GMT)
commit62c8c7f721563d0417fa10efb2b7faa6ee57034b (patch)
tree86d14b252a7cede5fd786461aa2b1777b942f993 /src
parentcaaaee072b6ca56c03a0cc66e7fe482a745128f7 (diff)
downloadhostap-62c8c7f721563d0417fa10efb2b7faa6ee57034b.zip
hostap-62c8c7f721563d0417fa10efb2b7faa6ee57034b.tar.gz
hostap-62c8c7f721563d0417fa10efb2b7faa6ee57034b.tar.bz2
nl80211: Handle pre-CAC expired event from the driver
Process the new nl80211 event NL80211_RADAR_PRE_CAC_EXPIRED to allow the driver to notify expiry of the CAC result on a channel. Signed-off-by: Vasanthakumar Thiagarajan <vthiagar@qti.qualcomm.com>
Diffstat (limited to 'src')
-rw-r--r--src/drivers/driver.h9
-rw-r--r--src/drivers/driver_common.c1
-rw-r--r--src/drivers/driver_nl80211_event.c4
3 files changed, 14 insertions, 0 deletions
diff --git a/src/drivers/driver.h b/src/drivers/driver.h
index 9018c08..3dc4827 100644
--- a/src/drivers/driver.h
+++ b/src/drivers/driver.h
@@ -4340,6 +4340,15 @@ enum wpa_event_type {
* range.
*/
EVENT_BEACON_LOSS,
+
+ /**
+ * EVENT_DFS_PRE_CAC_EXPIRED - Notify that channel availability check
+ * done previously (Pre-CAC) on the channel has expired. This would
+ * normally be on a non-ETSI DFS regulatory domain. DFS state of the
+ * channel will be moved from available to usable. A new CAC has to be
+ * performed before start operating on this channel.
+ */
+ EVENT_DFS_PRE_CAC_EXPIRED,
};
diff --git a/src/drivers/driver_common.c b/src/drivers/driver_common.c
index b6bcbca..220b7d4 100644
--- a/src/drivers/driver_common.c
+++ b/src/drivers/driver_common.c
@@ -82,6 +82,7 @@ const char * event_to_string(enum wpa_event_type event)
E2S(DFS_CAC_STARTED);
E2S(P2P_LO_STOP);
E2S(BEACON_LOSS);
+ E2S(DFS_PRE_CAC_EXPIRED);
}
return "UNKNOWN";
diff --git a/src/drivers/driver_nl80211_event.c b/src/drivers/driver_nl80211_event.c
index ed2cbe4..f05c546 100644
--- a/src/drivers/driver_nl80211_event.c
+++ b/src/drivers/driver_nl80211_event.c
@@ -1568,6 +1568,10 @@ static void nl80211_radar_event(struct wpa_driver_nl80211_data *drv,
case NL80211_RADAR_NOP_FINISHED:
wpa_supplicant_event(drv->ctx, EVENT_DFS_NOP_FINISHED, &data);
break;
+ case NL80211_RADAR_PRE_CAC_EXPIRED:
+ wpa_supplicant_event(drv->ctx, EVENT_DFS_PRE_CAC_EXPIRED,
+ &data);
+ break;
default:
wpa_printf(MSG_DEBUG, "nl80211: Unknown radar event %d "
"received", event_type);