Lines Matching refs:sta_ptr

195 	struct mwifiex_sta_node *sta_ptr;  in mwifiex_tdls_add_ht_oper()  local
200 sta_ptr = mwifiex_get_sta_entry(priv, mac); in mwifiex_tdls_add_ht_oper()
201 if (unlikely(!sta_ptr)) { in mwifiex_tdls_add_ht_oper()
226 memcpy(&sta_ptr->tdls_cap.ht_oper, ht_oper, in mwifiex_tdls_add_ht_oper()
238 struct mwifiex_sta_node *sta_ptr; in mwifiex_tdls_add_vht_oper() local
248 sta_ptr = mwifiex_get_sta_entry(priv, mac); in mwifiex_tdls_add_vht_oper()
249 if (unlikely(!sta_ptr)) { in mwifiex_tdls_add_vht_oper()
255 if (sta_ptr->tdls_cap.extcap.ext_capab[7] & in mwifiex_tdls_add_vht_oper()
276 vht_cap = &sta_ptr->tdls_cap.vhtcap; in mwifiex_tdls_add_vht_oper()
284 if (ap_vht_cap && sta_ptr->tdls_cap.extcap.ext_capab[7] & in mwifiex_tdls_add_vht_oper()
836 struct mwifiex_sta_node *sta_ptr; in mwifiex_process_tdls_action_frame() local
887 sta_ptr = mwifiex_add_sta_entry(priv, peer); in mwifiex_process_tdls_action_frame()
888 if (!sta_ptr) in mwifiex_process_tdls_action_frame()
891 sta_ptr->tdls_cap.capab = cap; in mwifiex_process_tdls_action_frame()
899 sta_ptr->tdls_cap.rates_len = pos[1]; in mwifiex_process_tdls_action_frame()
901 sta_ptr->tdls_cap.rates[i] = pos[i + 2]; in mwifiex_process_tdls_action_frame()
905 basic = sta_ptr->tdls_cap.rates_len; in mwifiex_process_tdls_action_frame()
907 sta_ptr->tdls_cap.rates[basic + i] = pos[i + 2]; in mwifiex_process_tdls_action_frame()
908 sta_ptr->tdls_cap.rates_len += pos[1]; in mwifiex_process_tdls_action_frame()
911 memcpy((u8 *)&sta_ptr->tdls_cap.ht_capb, pos, in mwifiex_process_tdls_action_frame()
913 sta_ptr->is_11n_enabled = 1; in mwifiex_process_tdls_action_frame()
916 memcpy(&sta_ptr->tdls_cap.ht_oper, pos, in mwifiex_process_tdls_action_frame()
920 sta_ptr->tdls_cap.coex_2040 = pos[2]; in mwifiex_process_tdls_action_frame()
923 memcpy((u8 *)&sta_ptr->tdls_cap.extcap, pos, in mwifiex_process_tdls_action_frame()
928 memcpy((u8 *)&sta_ptr->tdls_cap.rsn_ie, pos, in mwifiex_process_tdls_action_frame()
934 sta_ptr->tdls_cap.qos_info = pos[2]; in mwifiex_process_tdls_action_frame()
938 memcpy(&sta_ptr->tdls_cap.vhtoper, pos, in mwifiex_process_tdls_action_frame()
943 memcpy((u8 *)&sta_ptr->tdls_cap.vhtcap, pos, in mwifiex_process_tdls_action_frame()
945 sta_ptr->is_11ac_enabled = 1; in mwifiex_process_tdls_action_frame()
950 sta_ptr->tdls_cap.aid = in mwifiex_process_tdls_action_frame()
963 struct mwifiex_sta_node *sta_ptr; in mwifiex_tdls_process_config_link() local
967 sta_ptr = mwifiex_get_sta_entry(priv, peer); in mwifiex_tdls_process_config_link()
969 if (!sta_ptr || sta_ptr->tdls_status == TDLS_SETUP_FAILURE) { in mwifiex_tdls_process_config_link()
984 struct mwifiex_sta_node *sta_ptr; in mwifiex_tdls_process_create_link() local
988 sta_ptr = mwifiex_get_sta_entry(priv, peer); in mwifiex_tdls_process_create_link()
990 if (sta_ptr && sta_ptr->tdls_status == TDLS_SETUP_INPROGRESS) { in mwifiex_tdls_process_create_link()
996 sta_ptr = mwifiex_add_sta_entry(priv, peer); in mwifiex_tdls_process_create_link()
997 if (!sta_ptr) in mwifiex_tdls_process_create_link()
1000 sta_ptr->tdls_status = TDLS_SETUP_INPROGRESS; in mwifiex_tdls_process_create_link()
1011 struct mwifiex_sta_node *sta_ptr; in mwifiex_tdls_process_disable_link() local
1016 sta_ptr = mwifiex_get_sta_entry(priv, peer); in mwifiex_tdls_process_disable_link()
1018 if (sta_ptr) { in mwifiex_tdls_process_disable_link()
1019 if (sta_ptr->is_11n_enabled) { in mwifiex_tdls_process_disable_link()
1041 struct mwifiex_sta_node *sta_ptr; in mwifiex_tdls_process_enable_link() local
1046 sta_ptr = mwifiex_get_sta_entry(priv, peer); in mwifiex_tdls_process_enable_link()
1048 if (sta_ptr && (sta_ptr->tdls_status != TDLS_SETUP_FAILURE)) { in mwifiex_tdls_process_enable_link()
1052 sta_ptr->tdls_status = TDLS_SETUP_COMPLETE; in mwifiex_tdls_process_enable_link()
1054 mcs = sta_ptr->tdls_cap.ht_capb.mcs; in mwifiex_tdls_process_enable_link()
1056 sta_ptr->is_11n_enabled = true; in mwifiex_tdls_process_enable_link()
1057 if (sta_ptr->is_11n_enabled) { in mwifiex_tdls_process_enable_link()
1058 if (le16_to_cpu(sta_ptr->tdls_cap.ht_capb.cap_info) & in mwifiex_tdls_process_enable_link()
1060 sta_ptr->max_amsdu = in mwifiex_tdls_process_enable_link()
1063 sta_ptr->max_amsdu = in mwifiex_tdls_process_enable_link()
1067 sta_ptr->ampdu_sta[i] = in mwifiex_tdls_process_enable_link()
1071 sta_ptr->ampdu_sta[i] = BA_STREAM_NOT_ALLOWED; in mwifiex_tdls_process_enable_link()
1074 memset(sta_ptr->rx_seq, 0xff, sizeof(sta_ptr->rx_seq)); in mwifiex_tdls_process_enable_link()
1081 if (sta_ptr) { in mwifiex_tdls_process_enable_link()
1117 struct mwifiex_sta_node *sta_ptr; in mwifiex_get_tdls_link_status() local
1119 sta_ptr = mwifiex_get_sta_entry(priv, mac); in mwifiex_get_tdls_link_status()
1120 if (sta_ptr) in mwifiex_get_tdls_link_status()
1121 return sta_ptr->tdls_status; in mwifiex_get_tdls_link_status()
1129 struct mwifiex_sta_node *sta_ptr; in mwifiex_get_tdls_list() local
1142 list_for_each_entry(sta_ptr, &priv->sta_list, list) { in mwifiex_get_tdls_list()
1143 if (sta_ptr->tdls_status == TDLS_SETUP_COMPLETE) { in mwifiex_get_tdls_list()
1144 ether_addr_copy(peer->peer_addr, sta_ptr->mac_addr); in mwifiex_get_tdls_list()
1158 struct mwifiex_sta_node *sta_ptr; in mwifiex_disable_all_tdls_links() local
1165 list_for_each_entry(sta_ptr, &priv->sta_list, list) { in mwifiex_disable_all_tdls_links()
1168 if (sta_ptr->is_11n_enabled) { in mwifiex_disable_all_tdls_links()
1177 mwifiex_restore_tdls_packets(priv, sta_ptr->mac_addr, in mwifiex_disable_all_tdls_links()
1179 memcpy(&tdls_oper.peer_mac, sta_ptr->mac_addr, ETH_ALEN); in mwifiex_disable_all_tdls_links()
1185 sta_ptr->mac_addr); in mwifiex_disable_all_tdls_links()