hilink_open_nan_adapter.c 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /*
  2. * Copyright (c) Huawei Technologies Co., Ltd. 2020-2021. All rights reserved.
  3. * Description: 模组系统适配层内存接口函数(需设备厂商实现)
  4. */
  5. #include "hilink_open_nan_adapter.h"
  6. #include <stdlib.h>
  7. void HILINK_RegSoftApEventCallback(SoftApEventCallback callback)
  8. {
  9. return;
  10. }
  11. int HILINK_NanInit(void)
  12. {
  13. return 0;
  14. }
  15. int HILINK_NanUninit(void)
  16. {
  17. return 0;
  18. }
  19. int HILINK_NanStartSubscribe(const char *serviceName, unsigned char localHandle, void *handle)
  20. {
  21. if ((serviceName == NULL) || (handle == NULL)) {
  22. return -1;
  23. }
  24. return 0;
  25. }
  26. int HILINK_NanStopSubscribe(unsigned char localHandle)
  27. {
  28. return 0;
  29. }
  30. int HILINK_NanSendPacket(unsigned char *macAddr, unsigned char peerHandle, unsigned char localHandle,
  31. unsigned char *msg, int len)
  32. {
  33. if ((macAddr == NULL) || (msg == NULL)) {
  34. return -1;
  35. }
  36. return 0;
  37. }
  38. int HILINK_NanSwitchSafeDistance(void)
  39. {
  40. return 0;
  41. }
  42. int HILINK_NanSwitchNormalDistance(void)
  43. {
  44. return 0;
  45. }
  46. int HILINK_NanBeaconSwitch(unsigned char enable)
  47. {
  48. return 0;
  49. }
  50. int HILINK_SetSafeDistancePower(signed char power)
  51. {
  52. return 0;
  53. }
  54. int HILINK_SoftApDeauthStation(const unsigned char *mac, unsigned char len)
  55. {
  56. if (mac == NULL) {
  57. return -1;
  58. }
  59. return 0;
  60. }