@@ -108,6 +108,10 @@ enum net_request_wifi_cmd {
108108 NET_REQUEST_WIFI_CMD_RTS_THRESHOLD_CONFIG ,
109109 /** WPS config */
110110 NET_REQUEST_WIFI_CMD_WPS_CONFIG ,
111+ /** Wezen Loopback mode */
112+ NET_REQUEST_WIFI_CMD_LOOPBACK ,
113+ /** Wezen get throughput API */
114+ NET_REQUEST_WIFI_CMD_THROUGHPUT ,
111115 /** @cond INTERNAL_HIDDEN */
112116 NET_REQUEST_WIFI_CMD_MAX
113117/** @endcond */
@@ -191,6 +195,18 @@ NET_MGMT_DEFINE_REQUEST_HANDLER(NET_REQUEST_WIFI_PACKET_FILTER);
191195
192196NET_MGMT_DEFINE_REQUEST_HANDLER (NET_REQUEST_WIFI_CHANNEL );
193197
198+ /** Request a Wi-Fi loopback mode setting */
199+ #define NET_REQUEST_WIFI_LOOPBACK_MODE \
200+ (_NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_LOOPBACK)
201+
202+ NET_MGMT_DEFINE_REQUEST_HANDLER (NET_REQUEST_WIFI_LOOPBACK_MODE );
203+
204+ /** Request Wi-Fi TX burst througput setting */
205+ #define NET_REQUEST_WIFI_THROUGHPUT \
206+ (_NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_THROUGHPUT)
207+
208+ NET_MGMT_DEFINE_REQUEST_HANDLER (NET_REQUEST_WIFI_THROUGHPUT );
209+
194210/** Request a Wi-Fi access point to disconnect a station */
195211#define NET_REQUEST_WIFI_AP_STA_DISCONNECT \
196212 (_NET_WIFI_BASE | NET_REQUEST_WIFI_CMD_AP_STA_DISCONNECT)
@@ -850,6 +866,15 @@ struct wifi_mode_info {
850866 enum wifi_mgmt_op oper ;
851867};
852868
869+ struct wifi_throughput_info {
870+ /** Previous second packet count */
871+ int previous_sec_packet_count ;
872+ /** Current second packet count */
873+ int current_sec_packet_count ;
874+ /** Interface index */
875+ uint8_t if_index ;
876+ };
877+
853878/** @brief Wi-Fi filter setting for monitor, prmoiscuous, TX-injection modes */
854879struct wifi_filter_info {
855880 /** Filter setting */
@@ -1365,6 +1390,10 @@ struct wifi_mgmt_ops {
13651390 * @return 0 if ok, < 0 if error
13661391 */
13671392 int (* wps_config )(const struct device * dev , struct wifi_wps_config_params * params );
1393+
1394+ int (* loopback_mode )(const struct device * dev , unsigned char loopback_mode );
1395+
1396+ int (* throughput )(const struct device * dev , struct wifi_throughput_info * throughput_info );
13681397};
13691398
13701399/** Wi-Fi management offload API */
0 commit comments