8723BU: Update 8723BU wifi driver to version v4.3.16_14189.20150519_BTCOEX2015119...
[firefly-linux-kernel-4.4.55.git] / drivers / net / wireless / rockchip_wlan / rtl8723bu / include / rtw_pwrctrl.h
index 8b3f3ab568dcc2f9910e182da8f5d068fcf9f1f1..4fceaee2545d95b7c923265bfac365ca4e2b7c59 100755 (executable)
@@ -63,7 +63,8 @@ enum Power_Mgnt
 
 #ifdef CONFIG_PNO_SUPPORT
 #define MAX_PNO_LIST_COUNT 16
-#define MAX_SCAN_LIST_COUNT 14 //2.4G only
+#define MAX_SCAN_LIST_COUNT 14 //2.4G only
+#define MAX_HIDDEN_AP 8                //8 hidden AP
 #endif
 
 /*
@@ -205,13 +206,15 @@ typedef enum _PS_DENY_REASON
 typedef struct pno_nlo_info
 {
        u32 fast_scan_period;                           //Fast scan period
-       u32     ssid_num;                               //number of entry
+       u8      ssid_num;                               //number of entry
+       u8      hidden_ssid_num;
        u32     slow_scan_period;                       //slow scan period
        u32     fast_scan_iterations;                   //Fast scan iterations
        u8      ssid_length[MAX_PNO_LIST_COUNT];        //SSID Length Array
        u8      ssid_cipher_info[MAX_PNO_LIST_COUNT];   //Cipher information for security
        u8      ssid_channel_info[MAX_PNO_LIST_COUNT];  //channel information
-}pno_nlo_info_t;       
+       u8      loc_probe_req[MAX_HIDDEN_AP];           //loc_probeReq
+}pno_nlo_info_t;
 
 typedef struct pno_ssid {
        u32             SSID_len;
@@ -279,6 +282,8 @@ struct pwrctrl_priv
 
        uint    ips_enter_cnts;
        uint    ips_leave_cnts;
+       uint    lps_enter_cnts;
+       uint    lps_leave_cnts;
 
        u8      ips_mode; 
        u8      ips_org_mode; 
@@ -316,12 +321,14 @@ struct pwrctrl_priv
        u8              wowlan_wake_reason;
        u8              wowlan_ap_mode;
        u8              wowlan_mode;
+       u8              wowlan_p2p_mode;
+       u8              wowlan_pno_enable;
 #ifdef CONFIG_WOWLAN
        u8              wowlan_pattern;
        u8              wowlan_magic;
        u8              wowlan_unicast;
        u8              wowlan_pattern_idx;
-       u8              wowlan_pno_enable;
+       u8              wowlan_from_cmd;
 #ifdef CONFIG_PNO_SUPPORT
        u8              pno_in_resume;
        u8              pno_inited;
@@ -430,6 +437,7 @@ void LPS_Enter(PADAPTER padapter, const char *msg);
 void LPS_Leave(PADAPTER padapter, const char *msg);
 void traffic_check_for_leave_lps(PADAPTER padapter, u8 tx, u32 tx_packets);
 void rtw_set_ps_mode(PADAPTER padapter, u8 ps_mode, u8 smart_ps, u8 bcn_ant_mode, const char *msg);
+void rtw_set_fw_in_ips_mode(PADAPTER padapter, u8 enable);
 void rtw_set_rpwm(_adapter * padapter, u8 val8);
 #endif