Added dbus method to get whether 6GHz band is supported
[platform/upstream/connman.git] / src / device.c
index 5116900..1e3924b 100755 (executable)
@@ -82,6 +82,7 @@ struct connman_device {
                                    */
        int max_scan_ssids;
        bool is_5_0_ghz_supported;
+       bool is_6_0_ghz_supported;
        unsigned int mac_policy;
        unsigned int preassoc_mac_policy;
        unsigned int random_mac_lifetime;
@@ -1281,10 +1282,21 @@ void connman_device_set_wifi_5ghz_supported(struct connman_device *device,
        device->is_5_0_ghz_supported = is_5_0_ghz_supported;
 }
 
+void connman_device_set_wifi_6ghz_supported(struct connman_device *device,
+                                                       bool is_6_0_ghz_supported)
+{
+       device->is_6_0_ghz_supported = is_6_0_ghz_supported;
+}
+
 bool connman_device_get_wifi_5ghz_supported(struct connman_device *device)
 {
        return device->is_5_0_ghz_supported;
 }
+
+bool connman_device_get_wifi_6ghz_supported(struct connman_device *device)
+{
+       return device->is_6_0_ghz_supported;
+}
 #endif
 
 /**