Add tethering client data limitation
[platform/core/connectivity/stc-manager.git] / src / stc-restriction.c
index 2f44459..f4cd753 100644 (file)
@@ -241,6 +241,12 @@ static void __stc_extract_restriction_rule(const char *key, GVariant *value,
                rule->rstn_type = g_variant_get_uint16(value);
                STC_LOGD("type: [%u]", (unsigned int) rule->rstn_type);
 
+       } else if (!g_strcmp0(key, "mac")) {
+               guint str_length;
+               const gchar *str = g_variant_get_string(value, &str_length);
+               rule->mac = g_strdup(str);
+               STC_LOGD("mac: [%s]", rule->mac);
+
        } else {
                STC_LOGD("Unknown select rule"); //LCOV_EXCL_LINE
        }