]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Define a vendor specific NDP attribute for NAN service id
authorAjit Vaishya <quic_ajitv@quicinc.com>
Tue, 15 Feb 2022 16:24:31 +0000 (21:54 +0530)
committerJouni Malinen <j@w1.fi>
Wed, 23 Feb 2022 23:47:53 +0000 (01:47 +0200)
Add a NAN NDP attribute QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID which
indicates service id with 6 bytes of length and it's derived from the
SHA-256 hash of the NAN service name. As per Wi-Fi Aware Specfication
version 3.2, this service ID is used to calculate the NAN PMK.

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
src/common/qca-vendor.h

index 2b916237409724b87982198fddf9618b1d3361c4..db5eb6bda81aadcae1c0af7719fcf1592242224d 100644 (file)
@@ -7360,6 +7360,14 @@ enum qca_wlan_vendor_attr_ndp_params {
         * 1:support 0:not support
         */
        QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT = 30,
+       /* As per Wi-Fi Aware Specification v3.2 Service Id is the first
+        * 48 bits of the SHA-256 hash of the Service Name.
+        * A lower-case representation of the Service Name shall be used to
+        * calculate the Service ID.
+        * Array of u8: length is 6 bytes
+        * This attribute is used and optional for ndp indication.
+        */
+       QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID = 31,
 
        /* keep last */
        QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST,