]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
nl80211: Handle pre-CAC expired event from the driver
authorVasanthakumar Thiagarajan <vthiagar@qti.qualcomm.com>
Wed, 8 Mar 2017 05:13:17 +0000 (10:43 +0530)
committerJouni Malinen <j@w1.fi>
Thu, 9 Mar 2017 15:01:36 +0000 (17:01 +0200)
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>
src/drivers/driver.h
src/drivers/driver_common.c
src/drivers/driver_nl80211_event.c

index 9018c083c7474e0bda081e37611fd6ce962aa58e..3dc4827a5e36fe5fe06684870a668edafaaa58f9 100644 (file)
@@ -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,
 };
 
 
index b6bcbcad27f89fba87cc370c0da9b4653b672fbc..220b7d415eb84ab40b95490b4bdde33f7c072e87 100644 (file)
@@ -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";
index ed2cbe4906818e0465923e07b26a282f2496fc27..f05c5466cbe2eec807f071568127a8ae3d2bed90 100644 (file)
@@ -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);