1 2 #ifndef _wl_iapsta_ 3 #define _wl_iapsta_ 4 typedef enum IFMODE { 5 ISTA_MODE = 1, 6 IAP_MODE, 7 IGO_MODE, 8 IGC_MODE, 9 IMESH_MODE 10 } ifmode_t; 11 12 enum wl_ext_status { 13 WL_EXT_STATUS_PRE_DISCONNECTING = 0, 14 WL_EXT_STATUS_DISCONNECTING, 15 WL_EXT_STATUS_DISCONNECTED, 16 WL_EXT_STATUS_SCAN, 17 WL_EXT_STATUS_SCANNING, 18 WL_EXT_STATUS_SCAN_COMPLETE, 19 WL_EXT_STATUS_CONNECTING, 20 WL_EXT_STATUS_RECONNECT, 21 WL_EXT_STATUS_CONNECTED, 22 WL_EXT_STATUS_ROAMED, 23 WL_EXT_STATUS_ADD_KEY, 24 WL_EXT_STATUS_AP_ENABLING, 25 WL_EXT_STATUS_AP_ENABLED, 26 WL_EXT_STATUS_DELETE_STA, 27 WL_EXT_STATUS_STA_DISCONNECTED, 28 WL_EXT_STATUS_STA_CONNECTED, 29 WL_EXT_STATUS_AP_DISABLING, 30 WL_EXT_STATUS_AP_DISABLED 31 }; 32 33 extern int op_mode; 34 void wl_ext_update_conn_state(dhd_pub_t *dhd, int ifidx, uint conn_state); 35 #ifdef EAPOL_RESEND 36 void wl_ext_backup_eapol_txpkt(dhd_pub_t *dhd, int ifidx, void *pkt); 37 void wl_ext_release_eapol_txpkt(dhd_pub_t *dhd, int ifidx, bool rx); 38 #endif /* EAPOL_RESEND */ 39 void wl_ext_iapsta_get_vif_macaddr(struct dhd_pub *dhd, int ifidx, u8 *mac_addr); 40 #ifdef WLDWDS 41 int wl_ext_iapsta_attach_dwds_netdev(struct net_device *net, int ifidx, uint8 bssidx); 42 int wl_ext_iapsta_dettach_dwds_netdev(struct net_device *net, int ifidx, uint8 bssidx); 43 #endif /* WLDWDS */ 44 int wl_ext_iapsta_attach_netdev(struct net_device *net, int ifidx, uint8 bssidx); 45 int wl_ext_iapsta_attach_name(struct net_device *net, int ifidx); 46 int wl_ext_iapsta_dettach_netdev(struct net_device *net, int ifidx); 47 int wl_ext_iapsta_update_net_device(struct net_device *net, int ifidx); 48 int wl_ext_iapsta_alive_preinit(struct net_device *dev); 49 int wl_ext_iapsta_alive_postinit(struct net_device *dev); 50 int wl_ext_iapsta_attach(struct net_device *net); 51 void wl_ext_iapsta_dettach(struct net_device *net); 52 int wl_ext_iapsta_enable(struct net_device *dev, char *command, int total_len); 53 int wl_ext_iapsta_disable(struct net_device *dev, char *command, int total_len); 54 int wl_ext_isam_param(struct net_device *dev, char *command, int total_len); 55 int wl_ext_isam_status(struct net_device *dev, char *command, int total_len); 56 int wl_ext_isam_init(struct net_device *dev, char *command, int total_len); 57 int wl_ext_iapsta_config(struct net_device *dev, char *command, int total_len); 58 void wl_ext_add_remove_pm_enable_work(struct net_device *dev, bool add); 59 bool wl_ext_iapsta_other_if_enabled(struct net_device *net); 60 bool wl_ext_sta_connecting(struct net_device *dev); 61 void wl_ext_get_chan_str(struct net_device *dev, char *chan_str, int total_len); 62 #ifdef DHD_LOSSLESS_ROAMING 63 int wl_ext_any_sta_handshaking(struct dhd_pub *dhd); 64 #endif /* DHD_LOSSLESS_ROAMING */ 65 void wl_iapsta_wait_event_complete(struct dhd_pub *dhd); 66 int wl_iapsta_suspend_resume(dhd_pub_t *dhd, int suspend); 67 #ifdef USE_IW 68 int wl_ext_in4way_sync_wext(struct net_device *dev, uint action, 69 enum wl_ext_status status, void *context); 70 #endif /* USE_IW */ 71 #ifdef WLMESH 72 int wl_ext_mesh_peer_status(struct net_device *dev, char *data, char *command, 73 int total_len); 74 int wl_ext_isam_peer_path(struct net_device *dev, char *command, int total_len); 75 #endif 76 #ifdef WL_CFG80211 77 int wl_ext_in4way_sync(struct net_device *dev, uint action, 78 enum wl_ext_status status, void *context); 79 void wl_ext_update_extsae_4way(struct net_device *dev, 80 const struct ieee80211_mgmt *mgmt, bool tx); 81 u32 wl_ext_iapsta_update_channel(struct net_device *dev, u32 channel); 82 void wl_ext_iapsta_update_iftype(struct net_device *net, int wl_iftype); 83 bool wl_ext_iapsta_iftype_enabled(struct net_device *net, int wl_iftype); 84 void wl_ext_iapsta_enable_master_if(struct net_device *dev, bool post); 85 void wl_ext_iapsta_restart_master(struct net_device *dev); 86 void wl_ext_iapsta_ifadding(struct net_device *net, int ifidx); 87 bool wl_ext_iapsta_mesh_creating(struct net_device *net); 88 void wl_ext_fw_reinit_incsa(struct net_device *dev); 89 void wl_ext_send_event_msg(struct net_device *dev, int event, int status, 90 int reason); 91 #ifdef BTC_WAR 92 void wl_ext_btc_config(struct net_device *dev, bool enable); 93 #endif /* BTC_WAR */ 94 #ifdef STA_MGMT 95 bool wl_ext_del_sta_info(struct net_device *net, u8 *bssid); 96 bool wl_ext_add_sta_info(struct net_device *net, u8 *bssid); 97 #endif /* STA_MGMT */ 98 #ifdef SCAN_SUPPRESS 99 uint16 wl_ext_scan_suppress(struct net_device *dev, void *scan_params, bool scan_v2, 100 struct wl_chan_info *chan_info); 101 void wl_ext_reset_scan_busy(dhd_pub_t *dhd); 102 #endif /* SCAN_SUPPRESS */ 103 #endif 104 #ifdef PROPTX_MAXCOUNT 105 int wl_ext_get_wlfc_maxcount(struct dhd_pub *dhd, int ifidx); 106 #endif /* PROPTX_MAXCOUNT */ 107 #endif 108