spectral_module.c 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /*
  2. * Copyright (c) 2011,2017-2018 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. #include<linux/module.h>
  20. #include <wlan_spectral_utils_api.h>
  21. #include <qdf_types.h>
  22. #include<wlan_global_lmac_if_api.h>
  23. #include "spectral_defs_i.h"
  24. MODULE_LICENSE("Dual BSD/GPL");
  25. /**
  26. * spectral_init_module() - Initialize Spectral module
  27. *
  28. * Return: None
  29. */
  30. static int __init
  31. spectral_init_module(void)
  32. {
  33. spectral_info("qca_spectral module loaded");
  34. wlan_spectral_init();
  35. /* register spectral rxops */
  36. wlan_lmac_if_sptrl_set_rx_ops_register_cb
  37. (wlan_lmac_if_sptrl_register_rx_ops);
  38. return 0;
  39. }
  40. /**
  41. * spectral_exit_module() - De-initialize and exit Spectral module
  42. *
  43. * Return: None
  44. */
  45. static void __exit
  46. spectral_exit_module(void)
  47. {
  48. wlan_spectral_deinit();
  49. spectral_info("qca_spectral module unloaded");
  50. }
  51. module_init(spectral_init_module);
  52. module_exit(spectral_exit_module);