Remove unused "InsufficientPrivilege" NOCResponse status (#21072)
* Remove InsufficientPrivilege no longer used
* ZAP regen
* Zap regen
* Regen zap
* Restyled by clang-format
Co-authored-by: Restyled.io <commits@restyled.io>
diff --git a/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter b/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter
index 1dd178e..f989ede 100644
--- a/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter
+++ b/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter
@@ -1540,7 +1540,6 @@
kMissingCsr = 4;
kTableFull = 5;
kInvalidAdminSubject = 6;
- kInsufficientPrivilege = 8;
kFabricConflict = 9;
kLabelConflict = 10;
kInvalidFabricIndex = 11;
diff --git a/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter b/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter
index 3660f4d..9ef0f1f 100644
--- a/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter
+++ b/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter
@@ -1385,7 +1385,6 @@
kMissingCsr = 4;
kTableFull = 5;
kInvalidAdminSubject = 6;
- kInsufficientPrivilege = 8;
kFabricConflict = 9;
kLabelConflict = 10;
kInvalidFabricIndex = 11;
diff --git a/examples/bridge-app/bridge-common/bridge-app.matter b/examples/bridge-app/bridge-common/bridge-app.matter
index 9f36fee..192d27b 100644
--- a/examples/bridge-app/bridge-common/bridge-app.matter
+++ b/examples/bridge-app/bridge-common/bridge-app.matter
@@ -1230,7 +1230,6 @@
kMissingCsr = 4;
kTableFull = 5;
kInvalidAdminSubject = 6;
- kInsufficientPrivilege = 8;
kFabricConflict = 9;
kLabelConflict = 10;
kInvalidFabricIndex = 11;
diff --git a/examples/chef/devices/noip_rootnode_dimmablelight_bCwGYSDpoe.matter b/examples/chef/devices/noip_rootnode_dimmablelight_bCwGYSDpoe.matter
index 6d62ac5..97da0f4 100644
--- a/examples/chef/devices/noip_rootnode_dimmablelight_bCwGYSDpoe.matter
+++ b/examples/chef/devices/noip_rootnode_dimmablelight_bCwGYSDpoe.matter
@@ -1198,7 +1198,6 @@
kMissingCsr = 4;
kTableFull = 5;
kInvalidAdminSubject = 6;
- kInsufficientPrivilege = 8;
kFabricConflict = 9;
kLabelConflict = 10;
kInvalidFabricIndex = 11;
diff --git a/examples/chef/devices/rootnode_contactsensor_lFAGG1bfRO.matter b/examples/chef/devices/rootnode_contactsensor_lFAGG1bfRO.matter
index 34318b2..9ea4e7a 100644
--- a/examples/chef/devices/rootnode_contactsensor_lFAGG1bfRO.matter
+++ b/examples/chef/devices/rootnode_contactsensor_lFAGG1bfRO.matter
@@ -1088,7 +1088,6 @@
kMissingCsr = 4;
kTableFull = 5;
kInvalidAdminSubject = 6;
- kInsufficientPrivilege = 8;
kFabricConflict = 9;
kLabelConflict = 10;
kInvalidFabricIndex = 11;
diff --git a/examples/chef/devices/rootnode_dimmablelight_bCwGYSDpoe.matter b/examples/chef/devices/rootnode_dimmablelight_bCwGYSDpoe.matter
index c16341f..c6a9904 100644
--- a/examples/chef/devices/rootnode_dimmablelight_bCwGYSDpoe.matter
+++ b/examples/chef/devices/rootnode_dimmablelight_bCwGYSDpoe.matter
@@ -1332,7 +1332,6 @@
kMissingCsr = 4;
kTableFull = 5;
kInvalidAdminSubject = 6;
- kInsufficientPrivilege = 8;
kFabricConflict = 9;
kLabelConflict = 10;
kInvalidFabricIndex = 11;
diff --git a/examples/chef/devices/rootnode_flowsensor_1zVxHedlaV.matter b/examples/chef/devices/rootnode_flowsensor_1zVxHedlaV.matter
index 4a0201a..141d0f6 100644
--- a/examples/chef/devices/rootnode_flowsensor_1zVxHedlaV.matter
+++ b/examples/chef/devices/rootnode_flowsensor_1zVxHedlaV.matter
@@ -1101,7 +1101,6 @@
kMissingCsr = 4;
kTableFull = 5;
kInvalidAdminSubject = 6;
- kInsufficientPrivilege = 8;
kFabricConflict = 9;
kLabelConflict = 10;
kInvalidFabricIndex = 11;
diff --git a/examples/chef/devices/rootnode_heatingcoolingunit_ncdGai1E5a.matter b/examples/chef/devices/rootnode_heatingcoolingunit_ncdGai1E5a.matter
index 6ee6d45..b2b5e74 100644
--- a/examples/chef/devices/rootnode_heatingcoolingunit_ncdGai1E5a.matter
+++ b/examples/chef/devices/rootnode_heatingcoolingunit_ncdGai1E5a.matter
@@ -1325,7 +1325,6 @@
kMissingCsr = 4;
kTableFull = 5;
kInvalidAdminSubject = 6;
- kInsufficientPrivilege = 8;
kFabricConflict = 9;
kLabelConflict = 10;
kInvalidFabricIndex = 11;
diff --git a/examples/chef/devices/rootnode_humiditysensor_Xyj4gda6Hb.matter b/examples/chef/devices/rootnode_humiditysensor_Xyj4gda6Hb.matter
index 55e43da..ff04b5f 100644
--- a/examples/chef/devices/rootnode_humiditysensor_Xyj4gda6Hb.matter
+++ b/examples/chef/devices/rootnode_humiditysensor_Xyj4gda6Hb.matter
@@ -1101,7 +1101,6 @@
kMissingCsr = 4;
kTableFull = 5;
kInvalidAdminSubject = 6;
- kInsufficientPrivilege = 8;
kFabricConflict = 9;
kLabelConflict = 10;
kInvalidFabricIndex = 11;
diff --git a/examples/chef/devices/rootnode_lightsensor_lZQycTFcJK.matter b/examples/chef/devices/rootnode_lightsensor_lZQycTFcJK.matter
index ac40c1e..bd384a1 100644
--- a/examples/chef/devices/rootnode_lightsensor_lZQycTFcJK.matter
+++ b/examples/chef/devices/rootnode_lightsensor_lZQycTFcJK.matter
@@ -1101,7 +1101,6 @@
kMissingCsr = 4;
kTableFull = 5;
kInvalidAdminSubject = 6;
- kInsufficientPrivilege = 8;
kFabricConflict = 9;
kLabelConflict = 10;
kInvalidFabricIndex = 11;
diff --git a/examples/chef/devices/rootnode_occupancysensor_iHyVgifZuo.matter b/examples/chef/devices/rootnode_occupancysensor_iHyVgifZuo.matter
index d407008..4570dcf 100644
--- a/examples/chef/devices/rootnode_occupancysensor_iHyVgifZuo.matter
+++ b/examples/chef/devices/rootnode_occupancysensor_iHyVgifZuo.matter
@@ -1101,7 +1101,6 @@
kMissingCsr = 4;
kTableFull = 5;
kInvalidAdminSubject = 6;
- kInsufficientPrivilege = 8;
kFabricConflict = 9;
kLabelConflict = 10;
kInvalidFabricIndex = 11;
diff --git a/examples/chef/devices/rootnode_onofflight_bbs1b7IaOV.matter b/examples/chef/devices/rootnode_onofflight_bbs1b7IaOV.matter
index 942ffc8..08849f0 100644
--- a/examples/chef/devices/rootnode_onofflight_bbs1b7IaOV.matter
+++ b/examples/chef/devices/rootnode_onofflight_bbs1b7IaOV.matter
@@ -1332,7 +1332,6 @@
kMissingCsr = 4;
kTableFull = 5;
kInvalidAdminSubject = 6;
- kInsufficientPrivilege = 8;
kFabricConflict = 9;
kLabelConflict = 10;
kInvalidFabricIndex = 11;
diff --git a/examples/chef/devices/rootnode_onofflightswitch_FsPlMr090Q.matter b/examples/chef/devices/rootnode_onofflightswitch_FsPlMr090Q.matter
index 53fd7ed..b60a868 100644
--- a/examples/chef/devices/rootnode_onofflightswitch_FsPlMr090Q.matter
+++ b/examples/chef/devices/rootnode_onofflightswitch_FsPlMr090Q.matter
@@ -1402,7 +1402,6 @@
kMissingCsr = 4;
kTableFull = 5;
kInvalidAdminSubject = 6;
- kInsufficientPrivilege = 8;
kFabricConflict = 9;
kLabelConflict = 10;
kInvalidFabricIndex = 11;
diff --git a/examples/chef/devices/rootnode_onoffpluginunit_Wtf8ss5EBY.matter b/examples/chef/devices/rootnode_onoffpluginunit_Wtf8ss5EBY.matter
index 79dd377..3c60211 100644
--- a/examples/chef/devices/rootnode_onoffpluginunit_Wtf8ss5EBY.matter
+++ b/examples/chef/devices/rootnode_onoffpluginunit_Wtf8ss5EBY.matter
@@ -1249,7 +1249,6 @@
kMissingCsr = 4;
kTableFull = 5;
kInvalidAdminSubject = 6;
- kInsufficientPrivilege = 8;
kFabricConflict = 9;
kLabelConflict = 10;
kInvalidFabricIndex = 11;
diff --git a/examples/chef/devices/rootnode_pressuresensor_s0qC9wLH4k.matter b/examples/chef/devices/rootnode_pressuresensor_s0qC9wLH4k.matter
index 377a891..bfdddb2 100644
--- a/examples/chef/devices/rootnode_pressuresensor_s0qC9wLH4k.matter
+++ b/examples/chef/devices/rootnode_pressuresensor_s0qC9wLH4k.matter
@@ -1101,7 +1101,6 @@
kMissingCsr = 4;
kTableFull = 5;
kInvalidAdminSubject = 6;
- kInsufficientPrivilege = 8;
kFabricConflict = 9;
kLabelConflict = 10;
kInvalidFabricIndex = 11;
diff --git a/examples/chef/devices/rootnode_speaker_RpzeXdimqA.matter b/examples/chef/devices/rootnode_speaker_RpzeXdimqA.matter
index 31d9f98..971e68e 100644
--- a/examples/chef/devices/rootnode_speaker_RpzeXdimqA.matter
+++ b/examples/chef/devices/rootnode_speaker_RpzeXdimqA.matter
@@ -1212,7 +1212,6 @@
kMissingCsr = 4;
kTableFull = 5;
kInvalidAdminSubject = 6;
- kInsufficientPrivilege = 8;
kFabricConflict = 9;
kLabelConflict = 10;
kInvalidFabricIndex = 11;
diff --git a/examples/chef/devices/rootnode_temperaturesensor_Qy1zkNW7c3.matter b/examples/chef/devices/rootnode_temperaturesensor_Qy1zkNW7c3.matter
index ecf9c83..0d7c1ff 100644
--- a/examples/chef/devices/rootnode_temperaturesensor_Qy1zkNW7c3.matter
+++ b/examples/chef/devices/rootnode_temperaturesensor_Qy1zkNW7c3.matter
@@ -1101,7 +1101,6 @@
kMissingCsr = 4;
kTableFull = 5;
kInvalidAdminSubject = 6;
- kInsufficientPrivilege = 8;
kFabricConflict = 9;
kLabelConflict = 10;
kInvalidFabricIndex = 11;
diff --git a/examples/chef/devices/rootnode_thermostat_bm3fb8dhYi.matter b/examples/chef/devices/rootnode_thermostat_bm3fb8dhYi.matter
index 8ccf9a9..638550b 100644
--- a/examples/chef/devices/rootnode_thermostat_bm3fb8dhYi.matter
+++ b/examples/chef/devices/rootnode_thermostat_bm3fb8dhYi.matter
@@ -1199,7 +1199,6 @@
kMissingCsr = 4;
kTableFull = 5;
kInvalidAdminSubject = 6;
- kInsufficientPrivilege = 8;
kFabricConflict = 9;
kLabelConflict = 10;
kInvalidFabricIndex = 11;
diff --git a/examples/chef/devices/rootnode_windowcovering_RLCxaGi9Yx.matter b/examples/chef/devices/rootnode_windowcovering_RLCxaGi9Yx.matter
index c5a2479..bb69950 100644
--- a/examples/chef/devices/rootnode_windowcovering_RLCxaGi9Yx.matter
+++ b/examples/chef/devices/rootnode_windowcovering_RLCxaGi9Yx.matter
@@ -1199,7 +1199,6 @@
kMissingCsr = 4;
kTableFull = 5;
kInvalidAdminSubject = 6;
- kInsufficientPrivilege = 8;
kFabricConflict = 9;
kLabelConflict = 10;
kInvalidFabricIndex = 11;
diff --git a/examples/light-switch-app/light-switch-common/light-switch-app.matter b/examples/light-switch-app/light-switch-common/light-switch-app.matter
index ed884d5..3081518 100644
--- a/examples/light-switch-app/light-switch-common/light-switch-app.matter
+++ b/examples/light-switch-app/light-switch-common/light-switch-app.matter
@@ -1293,7 +1293,6 @@
kMissingCsr = 4;
kTableFull = 5;
kInvalidAdminSubject = 6;
- kInsufficientPrivilege = 8;
kFabricConflict = 9;
kLabelConflict = 10;
kInvalidFabricIndex = 11;
diff --git a/examples/lighting-app/lighting-common/lighting-app.matter b/examples/lighting-app/lighting-common/lighting-app.matter
index 65da89a..5f4d318 100644
--- a/examples/lighting-app/lighting-common/lighting-app.matter
+++ b/examples/lighting-app/lighting-common/lighting-app.matter
@@ -1228,7 +1228,6 @@
kMissingCsr = 4;
kTableFull = 5;
kInvalidAdminSubject = 6;
- kInsufficientPrivilege = 8;
kFabricConflict = 9;
kLabelConflict = 10;
kInvalidFabricIndex = 11;
diff --git a/examples/lock-app/lock-common/lock-app.matter b/examples/lock-app/lock-common/lock-app.matter
index db5f49b..1473357 100644
--- a/examples/lock-app/lock-common/lock-app.matter
+++ b/examples/lock-app/lock-common/lock-app.matter
@@ -1170,7 +1170,6 @@
kMissingCsr = 4;
kTableFull = 5;
kInvalidAdminSubject = 6;
- kInsufficientPrivilege = 8;
kFabricConflict = 9;
kLabelConflict = 10;
kInvalidFabricIndex = 11;
diff --git a/examples/log-source-app/log-source-common/log-source-app.matter b/examples/log-source-app/log-source-common/log-source-app.matter
index 1e7ae97..75377e1 100644
--- a/examples/log-source-app/log-source-common/log-source-app.matter
+++ b/examples/log-source-app/log-source-common/log-source-app.matter
@@ -317,7 +317,6 @@
kMissingCsr = 4;
kTableFull = 5;
kInvalidAdminSubject = 6;
- kInsufficientPrivilege = 8;
kFabricConflict = 9;
kLabelConflict = 10;
kInvalidFabricIndex = 11;
diff --git a/examples/ota-provider-app/ota-provider-common/ota-provider-app.matter b/examples/ota-provider-app/ota-provider-common/ota-provider-app.matter
index fd00e58..07fd85e 100644
--- a/examples/ota-provider-app/ota-provider-common/ota-provider-app.matter
+++ b/examples/ota-provider-app/ota-provider-common/ota-provider-app.matter
@@ -621,7 +621,6 @@
kMissingCsr = 4;
kTableFull = 5;
kInvalidAdminSubject = 6;
- kInsufficientPrivilege = 8;
kFabricConflict = 9;
kLabelConflict = 10;
kInvalidFabricIndex = 11;
diff --git a/examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.matter b/examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.matter
index 1a58f22..80d3b3e 100644
--- a/examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.matter
+++ b/examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.matter
@@ -624,7 +624,6 @@
kMissingCsr = 4;
kTableFull = 5;
kInvalidAdminSubject = 6;
- kInsufficientPrivilege = 8;
kFabricConflict = 9;
kLabelConflict = 10;
kInvalidFabricIndex = 11;
diff --git a/examples/placeholder/linux/apps/app1/config.matter b/examples/placeholder/linux/apps/app1/config.matter
index b73aac7..a04c825 100644
--- a/examples/placeholder/linux/apps/app1/config.matter
+++ b/examples/placeholder/linux/apps/app1/config.matter
@@ -1236,7 +1236,6 @@
kMissingCsr = 4;
kTableFull = 5;
kInvalidAdminSubject = 6;
- kInsufficientPrivilege = 8;
kFabricConflict = 9;
kLabelConflict = 10;
kInvalidFabricIndex = 11;
@@ -1316,7 +1315,6 @@
kMissingCsr = 4;
kTableFull = 5;
kInvalidAdminSubject = 6;
- kInsufficientPrivilege = 8;
kFabricConflict = 9;
kLabelConflict = 10;
kInvalidFabricIndex = 11;
diff --git a/examples/placeholder/linux/apps/app2/config.matter b/examples/placeholder/linux/apps/app2/config.matter
index b73aac7..a04c825 100644
--- a/examples/placeholder/linux/apps/app2/config.matter
+++ b/examples/placeholder/linux/apps/app2/config.matter
@@ -1236,7 +1236,6 @@
kMissingCsr = 4;
kTableFull = 5;
kInvalidAdminSubject = 6;
- kInsufficientPrivilege = 8;
kFabricConflict = 9;
kLabelConflict = 10;
kInvalidFabricIndex = 11;
@@ -1316,7 +1315,6 @@
kMissingCsr = 4;
kTableFull = 5;
kInvalidAdminSubject = 6;
- kInsufficientPrivilege = 8;
kFabricConflict = 9;
kLabelConflict = 10;
kInvalidFabricIndex = 11;
diff --git a/examples/pump-app/pump-common/pump-app.matter b/examples/pump-app/pump-common/pump-app.matter
index ef0af01..ab85bf6 100644
--- a/examples/pump-app/pump-common/pump-app.matter
+++ b/examples/pump-app/pump-common/pump-app.matter
@@ -896,7 +896,6 @@
kMissingCsr = 4;
kTableFull = 5;
kInvalidAdminSubject = 6;
- kInsufficientPrivilege = 8;
kFabricConflict = 9;
kLabelConflict = 10;
kInvalidFabricIndex = 11;
diff --git a/examples/pump-controller-app/pump-controller-common/pump-controller-app.matter b/examples/pump-controller-app/pump-controller-common/pump-controller-app.matter
index 13bc86a..5448d74 100644
--- a/examples/pump-controller-app/pump-controller-common/pump-controller-app.matter
+++ b/examples/pump-controller-app/pump-controller-common/pump-controller-app.matter
@@ -811,7 +811,6 @@
kMissingCsr = 4;
kTableFull = 5;
kInvalidAdminSubject = 6;
- kInsufficientPrivilege = 8;
kFabricConflict = 9;
kLabelConflict = 10;
kInvalidFabricIndex = 11;
diff --git a/examples/temperature-measurement-app/esp32/main/temperature-measurement.matter b/examples/temperature-measurement-app/esp32/main/temperature-measurement.matter
index fe24936..76830d4 100644
--- a/examples/temperature-measurement-app/esp32/main/temperature-measurement.matter
+++ b/examples/temperature-measurement-app/esp32/main/temperature-measurement.matter
@@ -651,7 +651,6 @@
kMissingCsr = 4;
kTableFull = 5;
kInvalidAdminSubject = 6;
- kInsufficientPrivilege = 8;
kFabricConflict = 9;
kLabelConflict = 10;
kInvalidFabricIndex = 11;
diff --git a/examples/thermostat/thermostat-common/thermostat.matter b/examples/thermostat/thermostat-common/thermostat.matter
index b9dd709..9dedf82 100644
--- a/examples/thermostat/thermostat-common/thermostat.matter
+++ b/examples/thermostat/thermostat-common/thermostat.matter
@@ -1135,7 +1135,6 @@
kMissingCsr = 4;
kTableFull = 5;
kInvalidAdminSubject = 6;
- kInsufficientPrivilege = 8;
kFabricConflict = 9;
kLabelConflict = 10;
kInvalidFabricIndex = 11;
diff --git a/examples/tv-app/tv-common/tv-app.matter b/examples/tv-app/tv-common/tv-app.matter
index 5d4e3f9..553ba35 100644
--- a/examples/tv-app/tv-common/tv-app.matter
+++ b/examples/tv-app/tv-common/tv-app.matter
@@ -1236,7 +1236,6 @@
kMissingCsr = 4;
kTableFull = 5;
kInvalidAdminSubject = 6;
- kInsufficientPrivilege = 8;
kFabricConflict = 9;
kLabelConflict = 10;
kInvalidFabricIndex = 11;
@@ -1337,7 +1336,6 @@
kMissingCsr = 4;
kTableFull = 5;
kInvalidAdminSubject = 6;
- kInsufficientPrivilege = 8;
kFabricConflict = 9;
kLabelConflict = 10;
kInvalidFabricIndex = 11;
diff --git a/examples/tv-casting-app/tv-casting-common/tv-casting-app.matter b/examples/tv-casting-app/tv-casting-common/tv-casting-app.matter
index 18bc17e..3047552 100644
--- a/examples/tv-casting-app/tv-casting-common/tv-casting-app.matter
+++ b/examples/tv-casting-app/tv-casting-common/tv-casting-app.matter
@@ -1429,7 +1429,6 @@
kMissingCsr = 4;
kTableFull = 5;
kInvalidAdminSubject = 6;
- kInsufficientPrivilege = 8;
kFabricConflict = 9;
kLabelConflict = 10;
kInvalidFabricIndex = 11;
diff --git a/examples/window-app/common/window-app.matter b/examples/window-app/common/window-app.matter
index 94f083e..9efbdd1 100644
--- a/examples/window-app/common/window-app.matter
+++ b/examples/window-app/common/window-app.matter
@@ -1249,7 +1249,6 @@
kMissingCsr = 4;
kTableFull = 5;
kInvalidAdminSubject = 6;
- kInsufficientPrivilege = 8;
kFabricConflict = 9;
kLabelConflict = 10;
kInvalidFabricIndex = 11;
diff --git a/src/app/clusters/operational-credentials-server/operational-credentials-server.cpp b/src/app/clusters/operational-credentials-server/operational-credentials-server.cpp
index 35c4ec9..db51829 100644
--- a/src/app/clusters/operational-credentials-server/operational-credentials-server.cpp
+++ b/src/app/clusters/operational-credentials-server/operational-credentials-server.cpp
@@ -508,22 +508,11 @@
}
}
- CHIP_ERROR err = CHIP_ERROR_INTERNAL;
-
- // Fetch current fabric
- const FabricInfo * fabric = RetrieveCurrentFabric(commandObj);
- if (fabric == nullptr)
- {
- SendNOCResponse(commandObj, commandPath, OperationalCertStatus::kInsufficientPrivilege, ourFabricIndex,
- CharSpan::fromCharString("Current fabric not found"));
- return true;
- }
-
// Set Label on fabric. Any error on this is basically an internal error...
// NOTE: if an UpdateNOC had caused a pending fabric, that pending fabric is
// the one updated thereafter. Otherwise, the data is committed to storage
// as soon as the update is done.
- err = fabricTable.SetFabricLabel(ourFabricIndex, label);
+ CHIP_ERROR err = fabricTable.SetFabricLabel(ourFabricIndex, label);
VerifyOrExit(err == CHIP_NO_ERROR, finalStatus = Status::Failure);
finalStatus = Status::Success;
@@ -606,10 +595,6 @@
{
return OperationalCertStatus::kInvalidAdminSubject;
}
- if (err == CHIP_ERROR_INSUFFICIENT_PRIVILEGE)
- {
- return OperationalCertStatus::kInsufficientPrivilege;
- }
return OperationalCertStatus::kInvalidNOC;
}
diff --git a/src/app/zap-templates/zcl/data-model/chip/operational-credentials-cluster.xml b/src/app/zap-templates/zcl/data-model/chip/operational-credentials-cluster.xml
index 01c172b..cb35cbd 100644
--- a/src/app/zap-templates/zcl/data-model/chip/operational-credentials-cluster.xml
+++ b/src/app/zap-templates/zcl/data-model/chip/operational-credentials-cluster.xml
@@ -36,7 +36,6 @@
<item name="MissingCsr" value="0x04"/>
<item name="TableFull" value="0x05"/>
<item name="InvalidAdminSubject" value="0x06"/>
- <item name="InsufficientPrivilege" value="0x08"/>
<item name="FabricConflict" value="0x09"/>
<item name="LabelConflict" value="0x0a"/>
<item name="InvalidFabricIndex" value="0x0b"/>
diff --git a/src/controller/CHIPDeviceController.cpp b/src/controller/CHIPDeviceController.cpp
index 9543c1c..feb959c 100644
--- a/src/controller/CHIPDeviceController.cpp
+++ b/src/controller/CHIPDeviceController.cpp
@@ -1277,8 +1277,6 @@
return CHIP_ERROR_INVALID_ADMIN_SUBJECT;
case OperationalCertStatus::kFabricConflict:
return CHIP_ERROR_FABRIC_EXISTS;
- case OperationalCertStatus::kInsufficientPrivilege:
- return CHIP_ERROR_INSUFFICIENT_PRIVILEGE;
case OperationalCertStatus::kLabelConflict:
return CHIP_ERROR_INVALID_ARGUMENT;
case OperationalCertStatus::kInvalidFabricIndex:
diff --git a/src/controller/data_model/controller-clusters.matter b/src/controller/data_model/controller-clusters.matter
index 90a9ddc..b6933d5 100644
--- a/src/controller/data_model/controller-clusters.matter
+++ b/src/controller/data_model/controller-clusters.matter
@@ -1771,7 +1771,6 @@
kMissingCsr = 4;
kTableFull = 5;
kInvalidAdminSubject = 6;
- kInsufficientPrivilege = 8;
kFabricConflict = 9;
kLabelConflict = 10;
kInvalidFabricIndex = 11;
diff --git a/src/controller/python/chip/clusters/Objects.py b/src/controller/python/chip/clusters/Objects.py
index 723dc91..93586fc 100644
--- a/src/controller/python/chip/clusters/Objects.py
+++ b/src/controller/python/chip/clusters/Objects.py
@@ -11042,7 +11042,6 @@
kMissingCsr = 0x04
kTableFull = 0x05
kInvalidAdminSubject = 0x06
- kInsufficientPrivilege = 0x08
kFabricConflict = 0x09
kLabelConflict = 0x0A
kInvalidFabricIndex = 0x0B
diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h b/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h
index e4dfadf..cd23e90 100644
--- a/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h
+++ b/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h
@@ -22492,7 +22492,6 @@
MTROperationalCredentialsOperationalCertStatusMissingCsr = 0x04,
MTROperationalCredentialsOperationalCertStatusTableFull = 0x05,
MTROperationalCredentialsOperationalCertStatusInvalidAdminSubject = 0x06,
- MTROperationalCredentialsOperationalCertStatusInsufficientPrivilege = 0x08,
MTROperationalCredentialsOperationalCertStatusFabricConflict = 0x09,
MTROperationalCredentialsOperationalCertStatusLabelConflict = 0x0A,
MTROperationalCredentialsOperationalCertStatusInvalidFabricIndex = 0x0B,
diff --git a/zzz_generated/app-common/app-common/zap-generated/cluster-enums-check.h b/zzz_generated/app-common/app-common/zap-generated/cluster-enums-check.h
index 2bca6b7..441c044 100644
--- a/zzz_generated/app-common/app-common/zap-generated/cluster-enums-check.h
+++ b/zzz_generated/app-common/app-common/zap-generated/cluster-enums-check.h
@@ -1020,7 +1020,6 @@
case EnumType::kMissingCsr:
case EnumType::kTableFull:
case EnumType::kInvalidAdminSubject:
- case EnumType::kInsufficientPrivilege:
case EnumType::kFabricConflict:
case EnumType::kLabelConflict:
case EnumType::kInvalidFabricIndex:
diff --git a/zzz_generated/app-common/app-common/zap-generated/cluster-enums.h b/zzz_generated/app-common/app-common/zap-generated/cluster-enums.h
index 10a067f..828bece 100644
--- a/zzz_generated/app-common/app-common/zap-generated/cluster-enums.h
+++ b/zzz_generated/app-common/app-common/zap-generated/cluster-enums.h
@@ -934,18 +934,17 @@
// Enum for OperationalCertStatus
enum class OperationalCertStatus : uint8_t
{
- kSuccess = 0x00,
- kInvalidPublicKey = 0x01,
- kInvalidNodeOpId = 0x02,
- kInvalidNOC = 0x03,
- kMissingCsr = 0x04,
- kTableFull = 0x05,
- kInvalidAdminSubject = 0x06,
- kInsufficientPrivilege = 0x08,
- kFabricConflict = 0x09,
- kLabelConflict = 0x0A,
- kInvalidFabricIndex = 0x0B,
- kUnknownEnumValue = 7,
+ kSuccess = 0x00,
+ kInvalidPublicKey = 0x01,
+ kInvalidNodeOpId = 0x02,
+ kInvalidNOC = 0x03,
+ kMissingCsr = 0x04,
+ kTableFull = 0x05,
+ kInvalidAdminSubject = 0x06,
+ kFabricConflict = 0x09,
+ kLabelConflict = 0x0A,
+ kInvalidFabricIndex = 0x0B,
+ kUnknownEnumValue = 7,
};
} // namespace OperationalCredentials