wm_oneshot_lsd.h 825 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. #ifndef WM_ONESHOT_LSD_H
  2. #define WM_ONESHOT_LSD_H
  3. #include <string.h>
  4. #include <stdlib.h>
  5. #include <stdio.h>
  6. #include "wm_type_def.h"
  7. #include "wm_wifi.h"
  8. #include "tls_common.h"
  9. #include "wm_ieee80211.h"
  10. #define LSD_ONESHOT_DEBUG 0
  11. typedef enum
  12. {
  13. LSD_ONESHOT_CONTINUE = 0,
  14. LSD_ONESHOT_CHAN_TEMP_LOCKED = 1,
  15. LSD_ONESHOT_CHAN_LOCKED_BW20 = 2,
  16. LSD_ONESHOT_CHAN_LOCKED_BW40 = 3,
  17. LSD_ONESHOT_COMPLETE = 4,
  18. LSD_ONESHOT_ERR = 5
  19. } lsd_oneshot_status_t;
  20. struct lsd_param_t{
  21. u8 ssid[33];
  22. u8 pwd[65];
  23. u8 bssid[6];
  24. u8 user_data[128];
  25. u8 ssid_len;
  26. u8 pwd_len;
  27. u8 user_len;
  28. u8 total_len;
  29. };
  30. extern struct lsd_param_t lsd_param;
  31. typedef int (*lsd_printf_fn) (const char* format, ...);
  32. extern lsd_printf_fn lsd_printf;
  33. int tls_lsd_recv(u8 *buf, u16 data_len);
  34. void tls_lsd_init(u8 *scanBss);
  35. #endif