@@ -30,6 +30,13 @@ class WifiInterfaceImpl final : public WifiInterface
30
30
public:
31
31
static WifiInterfaceImpl & GetInstance () { return mInstance ; }
32
32
33
+ WifiInterfaceImpl (const WifiInterfaceImpl &) = delete ;
34
+ WifiInterfaceImpl & operator =(const WifiInterfaceImpl &) = delete ;
35
+
36
+ /*
37
+ * WifiInterface Impl
38
+ */
39
+
33
40
CHIP_ERROR InitWiFiStack (void ) override ;
34
41
CHIP_ERROR GetMacAddress (sl_wfx_interface_t interface, chip::MutableByteSpan & addr) override ;
35
42
CHIP_ERROR StartNetworkScan (chip::ByteSpan ssid, ScanCallback callback) override ;
@@ -59,16 +66,17 @@ class WifiInterfaceImpl final : public WifiInterface
59
66
60
67
/* *
61
68
* @brief Callback function passed to the Wi-Fi stack to notify the application of a connection event.
62
- *
63
- * @note Function is public to allow the Wi-Fi stack to call it. In practice, it should be private but the callback structure
64
- * needs to be reworked
69
+ * Function is public to allow the Wi-Fi stack to call it. In practice, it should be private but the callback structure
70
+ * needs to be reworked first.
65
71
*
66
72
* @param connect_indication_body Connection callback data
67
73
*/
68
74
void ConnectionEventCallback (sl_wfx_connect_ind_body_t connect_indication_body);
69
75
70
76
/* *
71
77
* @brief Callback function to the Wi-Fi stack to notify the application of a disconnection event.
78
+ * Function is public to allow the Wi-Fi stack to call it. In practice, it should be private but the callback
79
+ * structure needs to be reworked first.
72
80
*
73
81
* @note See the sl_wfx_disconnect_ind_body_t structure for the reason values.
74
82
*
@@ -78,6 +86,9 @@ class WifiInterfaceImpl final : public WifiInterface
78
86
void DisconnectionEventCallback (uint8_t * mac, uint16_t reason);
79
87
80
88
private:
89
+ WifiInterfaceImpl () = default ;
90
+ ~WifiInterfaceImpl () = default ;
91
+
81
92
/* *
82
93
* @brief Initialize the WF200 platform
83
94
* Function triggers the platform int and the LwIP init.
@@ -96,14 +107,13 @@ class WifiInterfaceImpl final : public WifiInterface
96
107
97
108
/* *
98
109
* @brief Creates a new task to process Wi-Fi events
99
- *
100
110
*/
101
111
void StartWifiProcessTask (void );
102
112
103
113
/* *
104
114
* @brief Wf200 Wifi Init
105
115
*
106
- * TODO: We have multiple init function when we could have only one
116
+ * TODO: We have multiple init function when we could have only one.
107
117
*
108
118
* @return sl_status_t SL_STATUS_OK if the platform is initialized successfully,
109
119
* SL_STATUS_WIFI_INVALID_KEY, If the firmware keyset is invalid
0 commit comments