-+ * @NL80211_CMD_START_P2P_DEVICE: Start the given P2P Device, identified by
-+ * its %NL80211_ATTR_WDEV identifier. It must have been created with
-+ * %NL80211_CMD_NEW_INTERFACE previously. After it has been started, the
-+ * P2P Device can be used for P2P operations, e.g. remain-on-channel and
-+ * public action frame TX.
-+ * @NL80211_CMD_STOP_P2P_DEVICE: Stop the given P2P Device, identified by
-+ * its %NL80211_ATTR_WDEV identifier.
+ * Permission to use, copy, modify, and/or distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+@@ -328,7 +329,15 @@
+ * partial scan results may be available
+ *
+ * @NL80211_CMD_START_SCHED_SCAN: start a scheduled scan at certain
+- * intervals, as specified by %NL80211_ATTR_SCHED_SCAN_INTERVAL.
++ * intervals and certain number of cycles, as specified by
++ * %NL80211_ATTR_SCHED_SCAN_PLANS. If %NL80211_ATTR_SCHED_SCAN_PLANS is
++ * not specified and only %NL80211_ATTR_SCHED_SCAN_INTERVAL is specified,
++ * scheduled scan will run in an infinite loop with the specified interval.
++ * These attributes are mutually exculsive,
++ * i.e. NL80211_ATTR_SCHED_SCAN_INTERVAL must not be passed if
++ * NL80211_ATTR_SCHED_SCAN_PLANS is defined.
++ * If for some reason scheduled scan is aborted by the driver, all scan
++ * plans are canceled (including scan plans that did not start yet).
+ * Like with normal scans, if SSIDs (%NL80211_ATTR_SCAN_SSIDS)
+ * are passed, they are used in the probe requests. For
+ * broadcast, a broadcast SSID must be passed (ie. an empty
+@@ -1761,6 +1770,22 @@ enum nl80211_commands {
+ * @NL80211_ATTR_REG_INDOOR: flag attribute, if set indicates that the device
+ * is operating in an indoor environment.
+ *
++ * @NL80211_ATTR_MAX_NUM_SCHED_SCAN_PLANS: maximum number of scan plans for
++ * scheduled scan supported by the device (u32), a wiphy attribute.
++ * @NL80211_ATTR_MAX_SCAN_PLAN_INTERVAL: maximum interval (in seconds) for
++ * a scan plan (u32), a wiphy attribute.
++ * @NL80211_ATTR_MAX_SCAN_PLAN_ITERATIONS: maximum number of iterations in
++ * a scan plan (u32), a wiphy attribute.
++ * @NL80211_ATTR_SCHED_SCAN_PLANS: a list of scan plans for scheduled scan.
++ * Each scan plan defines the number of scan iterations and the interval
++ * between scans. The last scan plan will always run infinitely,
++ * thus it must not specify the number of iterations, only the interval
++ * between scans. The scan plans are executed sequentially.
++ * Each scan plan is a nested attribute of &enum nl80211_sched_scan_plan.