conf.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*
  2. * This file is part of wl12xx
  3. *
  4. * Copyright (C) 2011 Texas Instruments Inc.
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU General Public License
  8. * version 2 as published by the Free Software Foundation.
  9. *
  10. * This program is distributed in the hope that it will be useful, but
  11. * WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. * General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program; if not, write to the Free Software
  17. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  18. * 02110-1301 USA
  19. *
  20. */
  21. #ifndef __WL12XX_CONF_H__
  22. #define __WL12XX_CONF_H__
  23. /* these are number of channels on the band divided by two, rounded up */
  24. #define CONF_TX_PWR_COMPENSATION_LEN_2 7
  25. #define CONF_TX_PWR_COMPENSATION_LEN_5 18
  26. struct wl12xx_conf_rf {
  27. /*
  28. * Per channel power compensation for 2.4GHz
  29. *
  30. * Range: s8
  31. */
  32. u8 tx_per_channel_power_compensation_2[CONF_TX_PWR_COMPENSATION_LEN_2];
  33. /*
  34. * Per channel power compensation for 5GHz
  35. *
  36. * Range: s8
  37. */
  38. u8 tx_per_channel_power_compensation_5[CONF_TX_PWR_COMPENSATION_LEN_5];
  39. };
  40. struct wl12xx_priv_conf {
  41. struct wl12xx_conf_rf rf;
  42. struct conf_memory_settings mem_wl127x;
  43. };
  44. #endif /* __WL12XX_CONF_H__ */