spectral_module.c 1.5 KB

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