Scan request (NL80211_CMD_TRIGGER_SCAN) is used for triggering both scan and P2P search. At driver/firmware layer, scan and P2P search might be handled differently. Add new scan flag to indicate P2P search. This flag can be used by applications (e.g. wpa_supplicant) to explicitly request P2P search. Signed-off-by: Dedy Lansky <dlansky@xxxxxxxxxxxxxx> --- include/uapi/linux/nl80211.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/uapi/linux/nl80211.h b/include/uapi/linux/nl80211.h index f52797a..d7d07d6 100644 --- a/include/uapi/linux/nl80211.h +++ b/include/uapi/linux/nl80211.h @@ -4383,12 +4383,14 @@ enum nl80211_connect_failed_reason { * locally administered 1, multicast 0) is assumed. * This flag must not be requested when the feature isn't supported, check * the nl80211 feature flags for the device. + * @NL80211_SCAN_FLAG_P2P: indicate this is a request for a P2P search */ enum nl80211_scan_flags { NL80211_SCAN_FLAG_LOW_PRIORITY = 1<<0, NL80211_SCAN_FLAG_FLUSH = 1<<1, NL80211_SCAN_FLAG_AP = 1<<2, NL80211_SCAN_FLAG_RANDOM_ADDR = 1<<3, + NL80211_SCAN_FLAG_P2P = 1<<4, }; /** -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html