Lines Matching refs:sta_ptr
191 struct mwifiex_sta_node *sta_ptr; in mwifiex_tdls_add_ht_oper() local
196 sta_ptr = mwifiex_get_sta_entry(priv, mac); in mwifiex_tdls_add_ht_oper()
197 if (unlikely(!sta_ptr)) { in mwifiex_tdls_add_ht_oper()
203 if (!(le16_to_cpu(sta_ptr->tdls_cap.ht_capb.cap_info))) { in mwifiex_tdls_add_ht_oper()
228 memcpy(&sta_ptr->tdls_cap.ht_oper, ht_oper, in mwifiex_tdls_add_ht_oper()
240 struct mwifiex_sta_node *sta_ptr; in mwifiex_tdls_add_vht_oper() local
250 sta_ptr = mwifiex_get_sta_entry(priv, mac); in mwifiex_tdls_add_vht_oper()
251 if (unlikely(!sta_ptr)) { in mwifiex_tdls_add_vht_oper()
257 if (!(le32_to_cpu(sta_ptr->tdls_cap.vhtcap.vht_cap_info))) { in mwifiex_tdls_add_vht_oper()
264 if (sta_ptr->tdls_cap.extcap.ext_capab[7] & in mwifiex_tdls_add_vht_oper()
285 vht_cap = &sta_ptr->tdls_cap.vhtcap; in mwifiex_tdls_add_vht_oper()
293 if (ap_vht_cap && sta_ptr->tdls_cap.extcap.ext_capab[7] & in mwifiex_tdls_add_vht_oper()
894 struct mwifiex_sta_node *sta_ptr; in mwifiex_process_tdls_action_frame() local
945 sta_ptr = mwifiex_add_sta_entry(priv, peer); in mwifiex_process_tdls_action_frame()
946 if (!sta_ptr) in mwifiex_process_tdls_action_frame()
949 sta_ptr->tdls_cap.capab = cpu_to_le16(cap); in mwifiex_process_tdls_action_frame()
959 if (ie_len > sizeof(sta_ptr->tdls_cap.rates)) in mwifiex_process_tdls_action_frame()
961 sta_ptr->tdls_cap.rates_len = ie_len; in mwifiex_process_tdls_action_frame()
963 sta_ptr->tdls_cap.rates[i] = pos[i + 2]; in mwifiex_process_tdls_action_frame()
967 if (ie_len > sizeof(sta_ptr->tdls_cap.rates)) in mwifiex_process_tdls_action_frame()
969 basic = sta_ptr->tdls_cap.rates_len; in mwifiex_process_tdls_action_frame()
970 if (ie_len > sizeof(sta_ptr->tdls_cap.rates) - basic) in mwifiex_process_tdls_action_frame()
973 sta_ptr->tdls_cap.rates[basic + i] = pos[i + 2]; in mwifiex_process_tdls_action_frame()
974 sta_ptr->tdls_cap.rates_len += ie_len; in mwifiex_process_tdls_action_frame()
980 memcpy((u8 *)&sta_ptr->tdls_cap.ht_capb, pos + 2, in mwifiex_process_tdls_action_frame()
982 sta_ptr->is_11n_enabled = 1; in mwifiex_process_tdls_action_frame()
988 memcpy(&sta_ptr->tdls_cap.ht_oper, pos + 2, in mwifiex_process_tdls_action_frame()
994 sta_ptr->tdls_cap.coex_2040 = pos[2]; in mwifiex_process_tdls_action_frame()
1001 memcpy((u8 *)&sta_ptr->tdls_cap.extcap, pos, in mwifiex_process_tdls_action_frame()
1011 memcpy((u8 *)&sta_ptr->tdls_cap.rsn_ie, pos, in mwifiex_process_tdls_action_frame()
1019 sta_ptr->tdls_cap.qos_info = pos[2]; in mwifiex_process_tdls_action_frame()
1027 memcpy(&sta_ptr->tdls_cap.vhtoper, pos + 2, in mwifiex_process_tdls_action_frame()
1036 memcpy((u8 *)&sta_ptr->tdls_cap.vhtcap, pos + 2, in mwifiex_process_tdls_action_frame()
1038 sta_ptr->is_11ac_enabled = 1; in mwifiex_process_tdls_action_frame()
1045 sta_ptr->tdls_cap.aid = in mwifiex_process_tdls_action_frame()
1060 struct mwifiex_sta_node *sta_ptr; in mwifiex_tdls_process_config_link() local
1064 sta_ptr = mwifiex_get_sta_entry(priv, peer); in mwifiex_tdls_process_config_link()
1066 if (!sta_ptr || sta_ptr->tdls_status == TDLS_SETUP_FAILURE) { in mwifiex_tdls_process_config_link()
1081 struct mwifiex_sta_node *sta_ptr; in mwifiex_tdls_process_create_link() local
1085 sta_ptr = mwifiex_get_sta_entry(priv, peer); in mwifiex_tdls_process_create_link()
1087 if (sta_ptr && sta_ptr->tdls_status == TDLS_SETUP_INPROGRESS) { in mwifiex_tdls_process_create_link()
1093 sta_ptr = mwifiex_add_sta_entry(priv, peer); in mwifiex_tdls_process_create_link()
1094 if (!sta_ptr) in mwifiex_tdls_process_create_link()
1097 sta_ptr->tdls_status = TDLS_SETUP_INPROGRESS; in mwifiex_tdls_process_create_link()
1108 struct mwifiex_sta_node *sta_ptr; in mwifiex_tdls_process_disable_link() local
1112 sta_ptr = mwifiex_get_sta_entry(priv, peer); in mwifiex_tdls_process_disable_link()
1114 if (sta_ptr) { in mwifiex_tdls_process_disable_link()
1115 if (sta_ptr->is_11n_enabled) { in mwifiex_tdls_process_disable_link()
1135 struct mwifiex_sta_node *sta_ptr; in mwifiex_tdls_process_enable_link() local
1139 sta_ptr = mwifiex_get_sta_entry(priv, peer); in mwifiex_tdls_process_enable_link()
1141 if (sta_ptr && (sta_ptr->tdls_status != TDLS_SETUP_FAILURE)) { in mwifiex_tdls_process_enable_link()
1145 sta_ptr->tdls_status = TDLS_SETUP_COMPLETE; in mwifiex_tdls_process_enable_link()
1147 mcs = sta_ptr->tdls_cap.ht_capb.mcs; in mwifiex_tdls_process_enable_link()
1149 sta_ptr->is_11n_enabled = true; in mwifiex_tdls_process_enable_link()
1150 if (sta_ptr->is_11n_enabled) { in mwifiex_tdls_process_enable_link()
1151 if (le16_to_cpu(sta_ptr->tdls_cap.ht_capb.cap_info) & in mwifiex_tdls_process_enable_link()
1153 sta_ptr->max_amsdu = in mwifiex_tdls_process_enable_link()
1156 sta_ptr->max_amsdu = in mwifiex_tdls_process_enable_link()
1160 sta_ptr->ampdu_sta[i] = in mwifiex_tdls_process_enable_link()
1164 sta_ptr->ampdu_sta[i] = BA_STREAM_NOT_ALLOWED; in mwifiex_tdls_process_enable_link()
1166 if (sta_ptr->tdls_cap.extcap.ext_capab[3] & in mwifiex_tdls_process_enable_link()
1172 memset(sta_ptr->rx_seq, 0xff, sizeof(sta_ptr->rx_seq)); in mwifiex_tdls_process_enable_link()
1179 if (sta_ptr) { in mwifiex_tdls_process_enable_link()
1213 struct mwifiex_sta_node *sta_ptr; in mwifiex_get_tdls_link_status() local
1215 sta_ptr = mwifiex_get_sta_entry(priv, mac); in mwifiex_get_tdls_link_status()
1216 if (sta_ptr) in mwifiex_get_tdls_link_status()
1217 return sta_ptr->tdls_status; in mwifiex_get_tdls_link_status()
1225 struct mwifiex_sta_node *sta_ptr; in mwifiex_get_tdls_list() local
1237 list_for_each_entry(sta_ptr, &priv->sta_list, list) { in mwifiex_get_tdls_list()
1238 if (mwifiex_is_tdls_link_setup(sta_ptr->tdls_status)) { in mwifiex_get_tdls_list()
1239 ether_addr_copy(peer->peer_addr, sta_ptr->mac_addr); in mwifiex_get_tdls_list()
1253 struct mwifiex_sta_node *sta_ptr; in mwifiex_disable_all_tdls_links() local
1259 list_for_each_entry(sta_ptr, &priv->sta_list, list) { in mwifiex_disable_all_tdls_links()
1262 if (sta_ptr->is_11n_enabled) { in mwifiex_disable_all_tdls_links()
1269 mwifiex_restore_tdls_packets(priv, sta_ptr->mac_addr, in mwifiex_disable_all_tdls_links()
1271 memcpy(&tdls_oper.peer_mac, sta_ptr->mac_addr, ETH_ALEN); in mwifiex_disable_all_tdls_links()
1277 sta_ptr->mac_addr); in mwifiex_disable_all_tdls_links()