Lines Matching refs:sta_ptr
192 struct mwifiex_sta_node *sta_ptr; in mwifiex_tdls_add_ht_oper() local
197 sta_ptr = mwifiex_get_sta_entry(priv, mac); in mwifiex_tdls_add_ht_oper()
198 if (unlikely(!sta_ptr)) { in mwifiex_tdls_add_ht_oper()
204 if (!(le16_to_cpu(sta_ptr->tdls_cap.ht_capb.cap_info))) { in mwifiex_tdls_add_ht_oper()
229 memcpy(&sta_ptr->tdls_cap.ht_oper, ht_oper, in mwifiex_tdls_add_ht_oper()
241 struct mwifiex_sta_node *sta_ptr; in mwifiex_tdls_add_vht_oper() local
251 sta_ptr = mwifiex_get_sta_entry(priv, mac); in mwifiex_tdls_add_vht_oper()
252 if (unlikely(!sta_ptr)) { in mwifiex_tdls_add_vht_oper()
258 if (!(le32_to_cpu(sta_ptr->tdls_cap.vhtcap.vht_cap_info))) { in mwifiex_tdls_add_vht_oper()
265 if (sta_ptr->tdls_cap.extcap.ext_capab[7] & in mwifiex_tdls_add_vht_oper()
286 vht_cap = &sta_ptr->tdls_cap.vhtcap; in mwifiex_tdls_add_vht_oper()
294 if (ap_vht_cap && sta_ptr->tdls_cap.extcap.ext_capab[7] & in mwifiex_tdls_add_vht_oper()
896 struct mwifiex_sta_node *sta_ptr; in mwifiex_process_tdls_action_frame() local
947 sta_ptr = mwifiex_add_sta_entry(priv, peer); in mwifiex_process_tdls_action_frame()
948 if (!sta_ptr) in mwifiex_process_tdls_action_frame()
951 sta_ptr->tdls_cap.capab = cpu_to_le16(cap); in mwifiex_process_tdls_action_frame()
959 sta_ptr->tdls_cap.rates_len = pos[1]; in mwifiex_process_tdls_action_frame()
961 sta_ptr->tdls_cap.rates[i] = pos[i + 2]; in mwifiex_process_tdls_action_frame()
965 basic = sta_ptr->tdls_cap.rates_len; in mwifiex_process_tdls_action_frame()
967 sta_ptr->tdls_cap.rates[basic + i] = pos[i + 2]; in mwifiex_process_tdls_action_frame()
968 sta_ptr->tdls_cap.rates_len += pos[1]; in mwifiex_process_tdls_action_frame()
971 memcpy((u8 *)&sta_ptr->tdls_cap.ht_capb, pos, in mwifiex_process_tdls_action_frame()
973 sta_ptr->is_11n_enabled = 1; in mwifiex_process_tdls_action_frame()
976 memcpy(&sta_ptr->tdls_cap.ht_oper, pos, in mwifiex_process_tdls_action_frame()
980 sta_ptr->tdls_cap.coex_2040 = pos[2]; in mwifiex_process_tdls_action_frame()
983 memcpy((u8 *)&sta_ptr->tdls_cap.extcap, pos, in mwifiex_process_tdls_action_frame()
988 memcpy((u8 *)&sta_ptr->tdls_cap.rsn_ie, pos, in mwifiex_process_tdls_action_frame()
994 sta_ptr->tdls_cap.qos_info = pos[2]; in mwifiex_process_tdls_action_frame()
998 memcpy(&sta_ptr->tdls_cap.vhtoper, pos, in mwifiex_process_tdls_action_frame()
1003 memcpy((u8 *)&sta_ptr->tdls_cap.vhtcap, pos, in mwifiex_process_tdls_action_frame()
1005 sta_ptr->is_11ac_enabled = 1; in mwifiex_process_tdls_action_frame()
1010 sta_ptr->tdls_cap.aid = in mwifiex_process_tdls_action_frame()
1023 struct mwifiex_sta_node *sta_ptr; in mwifiex_tdls_process_config_link() local
1027 sta_ptr = mwifiex_get_sta_entry(priv, peer); in mwifiex_tdls_process_config_link()
1029 if (!sta_ptr || sta_ptr->tdls_status == TDLS_SETUP_FAILURE) { in mwifiex_tdls_process_config_link()
1044 struct mwifiex_sta_node *sta_ptr; in mwifiex_tdls_process_create_link() local
1048 sta_ptr = mwifiex_get_sta_entry(priv, peer); in mwifiex_tdls_process_create_link()
1050 if (sta_ptr && sta_ptr->tdls_status == TDLS_SETUP_INPROGRESS) { in mwifiex_tdls_process_create_link()
1056 sta_ptr = mwifiex_add_sta_entry(priv, peer); in mwifiex_tdls_process_create_link()
1057 if (!sta_ptr) in mwifiex_tdls_process_create_link()
1060 sta_ptr->tdls_status = TDLS_SETUP_INPROGRESS; in mwifiex_tdls_process_create_link()
1071 struct mwifiex_sta_node *sta_ptr; in mwifiex_tdls_process_disable_link() local
1076 sta_ptr = mwifiex_get_sta_entry(priv, peer); in mwifiex_tdls_process_disable_link()
1078 if (sta_ptr) { in mwifiex_tdls_process_disable_link()
1079 if (sta_ptr->is_11n_enabled) { in mwifiex_tdls_process_disable_link()
1101 struct mwifiex_sta_node *sta_ptr; in mwifiex_tdls_process_enable_link() local
1106 sta_ptr = mwifiex_get_sta_entry(priv, peer); in mwifiex_tdls_process_enable_link()
1108 if (sta_ptr && (sta_ptr->tdls_status != TDLS_SETUP_FAILURE)) { in mwifiex_tdls_process_enable_link()
1112 sta_ptr->tdls_status = TDLS_SETUP_COMPLETE; in mwifiex_tdls_process_enable_link()
1114 mcs = sta_ptr->tdls_cap.ht_capb.mcs; in mwifiex_tdls_process_enable_link()
1116 sta_ptr->is_11n_enabled = true; in mwifiex_tdls_process_enable_link()
1117 if (sta_ptr->is_11n_enabled) { in mwifiex_tdls_process_enable_link()
1118 if (le16_to_cpu(sta_ptr->tdls_cap.ht_capb.cap_info) & in mwifiex_tdls_process_enable_link()
1120 sta_ptr->max_amsdu = in mwifiex_tdls_process_enable_link()
1123 sta_ptr->max_amsdu = in mwifiex_tdls_process_enable_link()
1127 sta_ptr->ampdu_sta[i] = in mwifiex_tdls_process_enable_link()
1131 sta_ptr->ampdu_sta[i] = BA_STREAM_NOT_ALLOWED; in mwifiex_tdls_process_enable_link()
1133 if (sta_ptr->tdls_cap.extcap.ext_capab[3] & in mwifiex_tdls_process_enable_link()
1139 memset(sta_ptr->rx_seq, 0xff, sizeof(sta_ptr->rx_seq)); in mwifiex_tdls_process_enable_link()
1146 if (sta_ptr) { in mwifiex_tdls_process_enable_link()
1182 struct mwifiex_sta_node *sta_ptr; in mwifiex_get_tdls_link_status() local
1184 sta_ptr = mwifiex_get_sta_entry(priv, mac); in mwifiex_get_tdls_link_status()
1185 if (sta_ptr) in mwifiex_get_tdls_link_status()
1186 return sta_ptr->tdls_status; in mwifiex_get_tdls_link_status()
1194 struct mwifiex_sta_node *sta_ptr; in mwifiex_get_tdls_list() local
1207 list_for_each_entry(sta_ptr, &priv->sta_list, list) { in mwifiex_get_tdls_list()
1208 if (mwifiex_is_tdls_link_setup(sta_ptr->tdls_status)) { in mwifiex_get_tdls_list()
1209 ether_addr_copy(peer->peer_addr, sta_ptr->mac_addr); in mwifiex_get_tdls_list()
1223 struct mwifiex_sta_node *sta_ptr; in mwifiex_disable_all_tdls_links() local
1230 list_for_each_entry(sta_ptr, &priv->sta_list, list) { in mwifiex_disable_all_tdls_links()
1233 if (sta_ptr->is_11n_enabled) { in mwifiex_disable_all_tdls_links()
1242 mwifiex_restore_tdls_packets(priv, sta_ptr->mac_addr, in mwifiex_disable_all_tdls_links()
1244 memcpy(&tdls_oper.peer_mac, sta_ptr->mac_addr, ETH_ALEN); in mwifiex_disable_all_tdls_links()
1250 sta_ptr->mac_addr); in mwifiex_disable_all_tdls_links()