rtw_ioctl_set.h 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /******************************************************************************
  2. *
  3. * Copyright(c) 2007 - 2017 Realtek Corporation.
  4. *
  5. * This program is free software; you can redistribute it and/or modify it
  6. * under the terms of version 2 of the GNU General Public License as
  7. * published by the Free Software Foundation.
  8. *
  9. * This program is distributed in the hope that it will be useful, but WITHOUT
  10. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  12. * more details.
  13. *
  14. *****************************************************************************/
  15. #ifndef __RTW_IOCTL_SET_H_
  16. #define __RTW_IOCTL_SET_H_
  17. typedef u8 NDIS_802_11_PMKID_VALUE[16];
  18. typedef struct _BSSIDInfo {
  19. NDIS_802_11_MAC_ADDRESS BSSID;
  20. NDIS_802_11_PMKID_VALUE PMKID;
  21. } BSSIDInfo, *PBSSIDInfo;
  22. #ifdef PLATFORM_OS_XP
  23. typedef struct _NDIS_802_11_PMKID {
  24. u32 Length;
  25. u32 BSSIDInfoCount;
  26. BSSIDInfo BSSIDInfo[1];
  27. } NDIS_802_11_PMKID, *PNDIS_802_11_PMKID;
  28. #endif
  29. #ifdef PLATFORM_WINDOWS
  30. u8 rtw_set_802_11_reload_defaults(_adapter *padapter, NDIS_802_11_RELOAD_DEFAULTS reloadDefaults);
  31. u8 rtw_set_802_11_test(_adapter *padapter, NDIS_802_11_TEST *test);
  32. u8 rtw_set_802_11_pmkid(_adapter *pdapter, NDIS_802_11_PMKID *pmkid);
  33. u8 rtw_pnp_set_power_sleep(_adapter *padapter);
  34. u8 rtw_pnp_set_power_wakeup(_adapter *padapter);
  35. void rtw_pnp_resume_wk(void *context);
  36. void rtw_pnp_sleep_wk(void *context);
  37. #endif
  38. u8 rtw_set_802_11_authentication_mode(_adapter *pdapter, NDIS_802_11_AUTHENTICATION_MODE authmode);
  39. u8 rtw_set_802_11_bssid(_adapter *padapter, u8 *bssid);
  40. u8 rtw_set_802_11_add_wep(_adapter *padapter, NDIS_802_11_WEP *wep);
  41. u8 rtw_set_802_11_disassociate(_adapter *padapter);
  42. u8 rtw_set_802_11_bssid_list_scan(_adapter *padapter, struct sitesurvey_parm *pparm);
  43. u8 rtw_set_802_11_infrastructure_mode(_adapter *padapter, NDIS_802_11_NETWORK_INFRASTRUCTURE networktype);
  44. u8 rtw_set_802_11_ssid(_adapter *padapter, NDIS_802_11_SSID *ssid);
  45. u8 rtw_set_802_11_connect(_adapter *padapter, u8 *bssid, NDIS_802_11_SSID *ssid);
  46. u8 rtw_validate_bssid(u8 *bssid);
  47. u8 rtw_validate_ssid(NDIS_802_11_SSID *ssid);
  48. u16 rtw_get_cur_max_rate(_adapter *adapter);
  49. int rtw_set_scan_mode(_adapter *adapter, RT_SCAN_TYPE scan_mode);
  50. int rtw_set_channel_plan(_adapter *adapter, u8 channel_plan);
  51. int rtw_set_country(_adapter *adapter, const char *country_code);
  52. int rtw_set_band(_adapter *adapter, u8 band);
  53. #endif