@@ -4,8 +4,8 @@ use crate::utils::rand::Rand;
44use super :: basic_info:: { self , BasicInfoHandler } ;
55use super :: objects:: { Async , Cluster , Dataver , EmptyHandler , Endpoint , EndptId } ;
66use super :: sdm:: admin_commissioning:: { self , AdminCommCluster } ;
7- use super :: sdm:: ethernet_nw_diagnostics :: { self , EthNwDiagHandler } ;
8- use super :: sdm:: general_commissioning :: { self , CommissioningPolicy , GenCommHandler } ;
7+ use super :: sdm:: eth_nw_diag :: { self , EthNwDiagHandler } ;
8+ use super :: sdm:: gen_comm :: { self , CommissioningPolicy , GenCommHandler } ;
99use super :: sdm:: general_diagnostics:: { self , GenDiagCluster } ;
1010use super :: sdm:: group_key_management:: { self , GrpKeyMgmtCluster } ;
1111use super :: sdm:: noc:: { self , NocCluster } ;
@@ -17,20 +17,20 @@ use super::system_model::descriptor::{self, DescriptorCluster};
1717const ETH_NW_CLUSTERS : [ Cluster < ' static > ; 10 ] = [
1818 descriptor:: CLUSTER ,
1919 basic_info:: CLUSTER ,
20- general_commissioning :: CLUSTER ,
20+ gen_comm :: CLUSTER ,
2121 nw_commissioning:: ETH_CLUSTER ,
2222 admin_commissioning:: CLUSTER ,
2323 noc:: CLUSTER ,
2424 access_control:: CLUSTER ,
2525 general_diagnostics:: CLUSTER ,
26- ethernet_nw_diagnostics :: CLUSTER ,
26+ eth_nw_diag :: CLUSTER ,
2727 group_key_management:: CLUSTER ,
2828] ;
2929
3030const WIFI_NW_CLUSTERS : [ Cluster < ' static > ; 10 ] = [
3131 descriptor:: CLUSTER ,
3232 basic_info:: CLUSTER ,
33- general_commissioning :: CLUSTER ,
33+ gen_comm :: CLUSTER ,
3434 nw_commissioning:: WIFI_CLUSTER ,
3535 admin_commissioning:: CLUSTER ,
3636 noc:: CLUSTER ,
@@ -43,7 +43,7 @@ const WIFI_NW_CLUSTERS: [Cluster<'static>; 10] = [
4343const THREAD_NW_CLUSTERS : [ Cluster < ' static > ; 10 ] = [
4444 descriptor:: CLUSTER ,
4545 basic_info:: CLUSTER ,
46- general_commissioning :: CLUSTER ,
46+ gen_comm :: CLUSTER ,
4747 nw_commissioning:: THR_CLUSTER ,
4848 admin_commissioning:: CLUSTER ,
4949 noc:: CLUSTER ,
@@ -82,11 +82,8 @@ pub const fn clusters(op_nw_type: OperNwType) -> &'static [Cluster<'static>] {
8282}
8383
8484/// A type alias for a root (Endpoint 0) handler using Ethernet as an operational network
85- pub type EthRootEndpointHandler < ' a > = RootEndpointHandler <
86- ' a ,
87- EthNwCommCluster ,
88- ethernet_nw_diagnostics:: HandlerAdaptor < EthNwDiagHandler > ,
89- > ;
85+ pub type EthRootEndpointHandler < ' a > =
86+ RootEndpointHandler < ' a , EthNwCommCluster , eth_nw_diag:: HandlerAdaptor < EthNwDiagHandler > > ;
9087
9188/// A type representing the type of the root (Endpoint 0) handler
9289/// which is generic over the operational transport clusters (i.e. Ethernet, Wifi or Thread)
@@ -95,7 +92,7 @@ pub type RootEndpointHandler<'a, NWCOMM, NWDIAG> = handler_chain_type!(
9592 NWDIAG ,
9693 Async <descriptor:: DescriptorCluster <' a>>,
9794 Async <basic_info:: HandlerAdaptor <BasicInfoHandler >>,
98- Async <general_commissioning :: HandlerAdaptor <GenCommHandler <' a>>>,
95+ Async <gen_comm :: HandlerAdaptor <GenCommHandler <' a>>>,
9996 Async <admin_commissioning:: AdminCommCluster >,
10097 Async <noc:: NocCluster >,
10198 Async <access_control:: AccessControlCluster >,
@@ -108,7 +105,7 @@ pub fn eth_handler(endpoint_id: u16, rand: Rand) -> EthRootEndpointHandler<'stat
108105 handler (
109106 endpoint_id,
110107 EthNwCommCluster :: new ( Dataver :: new_rand ( rand) ) ,
111- ethernet_nw_diagnostics :: ID ,
108+ eth_nw_diag :: ID ,
112109 EthNwDiagHandler :: new ( Dataver :: new_rand ( rand) ) . adapt ( ) ,
113110 & true ,
114111 rand,
@@ -173,7 +170,7 @@ fn wrap<NWCOMM, NWDIAG>(
173170 )
174171 . chain (
175172 endpoint_id,
176- general_commissioning :: ID ,
173+ gen_comm :: ID ,
177174 Async (
178175 GenCommHandler :: new ( Dataver :: new_rand ( rand) , concurrent_connection_policy) . adapt ( ) ,
179176 ) ,
0 commit comments