wmi_unified_reg_api.c 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * Copyright (c) 2017 The Linux Foundation. All rights reserved.
  3. *
  4. *
  5. * Permission to use, copy, modify, and/or distribute this software for
  6. * any purpose with or without fee is hereby granted, provided that the
  7. * above copyright notice and this permission notice appear in all
  8. * copies.
  9. *
  10. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
  11. * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
  12. * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
  13. * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
  14. * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
  15. * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  16. * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  17. * PERFORMANCE OF THIS SOFTWARE.
  18. */
  19. /**
  20. * DOC: Implement API's specific to Regulatory component.
  21. */
  22. #include <qdf_status.h>
  23. #include <wmi_unified_api.h>
  24. #include <wmi_unified_priv.h>
  25. #include <wmi_unified_reg_api.h>
  26. QDF_STATUS wmi_extract_reg_chan_list_update_event(void *wmi_hdl,
  27. uint8_t *evt_buf,
  28. struct cur_regulatory_info
  29. *reg_info,
  30. uint32_t len)
  31. {
  32. struct wmi_unified *wmi_handle = (struct wmi_unified *)wmi_hdl;
  33. if (wmi_handle->ops->extract_reg_chan_list_update_event)
  34. return wmi_handle->ops->extract_reg_chan_list_update_event
  35. (wmi_handle,
  36. evt_buf, reg_info, len);
  37. return QDF_STATUS_E_FAILURE;
  38. }