]> Git Repo - esp-hosted.git/commitdiff
Fixed build failure for kernel 4.19.66
authorYogesh Mantri <[email protected]>
Wed, 17 Nov 2021 17:56:02 +0000 (23:26 +0530)
committerYogesh Mantri <[email protected]>
Wed, 17 Nov 2021 18:16:44 +0000 (23:46 +0530)
host/host_common/commands.c
host/linux/host_control/c_support/test_api.c

index 6d483c68d82f2cf362046341a9ef3f08f8750156..41bfd8d7083a925d5ae81f1bad312e968aee50ae 100644 (file)
@@ -9,6 +9,8 @@
 #include "esp_hosted_config.pb-c.h"
 
 #ifndef STM32F469xx
+#include <sys/socket.h>
+#include <sys/types.h>
 #include <linux/if.h>
 #include <netdb.h>
 #include <sys/ioctl.h>
index 1c34f52ff18fbf570677164e69b5e01e7a87a953..6e744e30da0f4c5e73bfd1b062d096ae64ab990f 100644 (file)
@@ -311,7 +311,7 @@ int test_station_mode_disconnect()
     ret = create_socket(AF_INET, SOCK_DGRAM, IPPROTO_IP, &sockfd);
     if (ret < 0) {
         printf("Failure to open socket\n");
-        return sockfd;
+        return FAILURE;
     }
 
     ret = interface_down(sockfd, STA_INTERFACE);
@@ -482,7 +482,7 @@ int test_softap_mode_stop()
     ret = create_socket(AF_INET, SOCK_DGRAM, IPPROTO_IP, &sockfd);
     if (ret < 0) {
         printf("Failure to open socket\n");
-        return sockfd;
+        return FAILURE;
     }
 
     ret = interface_down(sockfd, AP_INTERFACE);
This page took 0.031202 seconds and 4 git commands to generate.