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()
207 if (!(le16_to_cpu(sta_ptr->tdls_cap.ht_capb.cap_info))) { in mwifiex_tdls_add_ht_oper()
232 memcpy(&sta_ptr->tdls_cap.ht_oper, ht_oper, in mwifiex_tdls_add_ht_oper()
244 struct mwifiex_sta_node *sta_ptr; in mwifiex_tdls_add_vht_oper() local
254 sta_ptr = mwifiex_get_sta_entry(priv, mac); in mwifiex_tdls_add_vht_oper()
255 if (unlikely(!sta_ptr)) { in mwifiex_tdls_add_vht_oper()
261 if (!(le32_to_cpu(sta_ptr->tdls_cap.vhtcap.vht_cap_info))) { in mwifiex_tdls_add_vht_oper()
268 if (sta_ptr->tdls_cap.extcap.ext_capab[7] & in mwifiex_tdls_add_vht_oper()
289 vht_cap = &sta_ptr->tdls_cap.vhtcap; in mwifiex_tdls_add_vht_oper()
297 if (ap_vht_cap && sta_ptr->tdls_cap.extcap.ext_capab[7] & in mwifiex_tdls_add_vht_oper()
850 struct mwifiex_sta_node *sta_ptr; in mwifiex_process_tdls_action_frame() local
901 sta_ptr = mwifiex_add_sta_entry(priv, peer); in mwifiex_process_tdls_action_frame()
902 if (!sta_ptr) in mwifiex_process_tdls_action_frame()
905 sta_ptr->tdls_cap.capab = cap; in mwifiex_process_tdls_action_frame()
913 sta_ptr->tdls_cap.rates_len = pos[1]; in mwifiex_process_tdls_action_frame()
915 sta_ptr->tdls_cap.rates[i] = pos[i + 2]; in mwifiex_process_tdls_action_frame()
919 basic = sta_ptr->tdls_cap.rates_len; in mwifiex_process_tdls_action_frame()
921 sta_ptr->tdls_cap.rates[basic + i] = pos[i + 2]; in mwifiex_process_tdls_action_frame()
922 sta_ptr->tdls_cap.rates_len += pos[1]; in mwifiex_process_tdls_action_frame()
925 memcpy((u8 *)&sta_ptr->tdls_cap.ht_capb, pos, in mwifiex_process_tdls_action_frame()
927 sta_ptr->is_11n_enabled = 1; in mwifiex_process_tdls_action_frame()
930 memcpy(&sta_ptr->tdls_cap.ht_oper, pos, in mwifiex_process_tdls_action_frame()
934 sta_ptr->tdls_cap.coex_2040 = pos[2]; in mwifiex_process_tdls_action_frame()
937 memcpy((u8 *)&sta_ptr->tdls_cap.extcap, pos, in mwifiex_process_tdls_action_frame()
942 memcpy((u8 *)&sta_ptr->tdls_cap.rsn_ie, pos, in mwifiex_process_tdls_action_frame()
948 sta_ptr->tdls_cap.qos_info = pos[2]; in mwifiex_process_tdls_action_frame()
952 memcpy(&sta_ptr->tdls_cap.vhtoper, pos, in mwifiex_process_tdls_action_frame()
957 memcpy((u8 *)&sta_ptr->tdls_cap.vhtcap, pos, in mwifiex_process_tdls_action_frame()
959 sta_ptr->is_11ac_enabled = 1; in mwifiex_process_tdls_action_frame()
964 sta_ptr->tdls_cap.aid = in mwifiex_process_tdls_action_frame()
977 struct mwifiex_sta_node *sta_ptr; in mwifiex_tdls_process_config_link() local
981 sta_ptr = mwifiex_get_sta_entry(priv, peer); in mwifiex_tdls_process_config_link()
983 if (!sta_ptr || sta_ptr->tdls_status == TDLS_SETUP_FAILURE) { in mwifiex_tdls_process_config_link()
998 struct mwifiex_sta_node *sta_ptr; in mwifiex_tdls_process_create_link() local
1002 sta_ptr = mwifiex_get_sta_entry(priv, peer); in mwifiex_tdls_process_create_link()
1004 if (sta_ptr && sta_ptr->tdls_status == TDLS_SETUP_INPROGRESS) { in mwifiex_tdls_process_create_link()
1010 sta_ptr = mwifiex_add_sta_entry(priv, peer); in mwifiex_tdls_process_create_link()
1011 if (!sta_ptr) in mwifiex_tdls_process_create_link()
1014 sta_ptr->tdls_status = TDLS_SETUP_INPROGRESS; in mwifiex_tdls_process_create_link()
1025 struct mwifiex_sta_node *sta_ptr; in mwifiex_tdls_process_disable_link() local
1030 sta_ptr = mwifiex_get_sta_entry(priv, peer); in mwifiex_tdls_process_disable_link()
1032 if (sta_ptr) { in mwifiex_tdls_process_disable_link()
1033 if (sta_ptr->is_11n_enabled) { in mwifiex_tdls_process_disable_link()
1055 struct mwifiex_sta_node *sta_ptr; in mwifiex_tdls_process_enable_link() local
1060 sta_ptr = mwifiex_get_sta_entry(priv, peer); in mwifiex_tdls_process_enable_link()
1062 if (sta_ptr && (sta_ptr->tdls_status != TDLS_SETUP_FAILURE)) { in mwifiex_tdls_process_enable_link()
1066 sta_ptr->tdls_status = TDLS_SETUP_COMPLETE; in mwifiex_tdls_process_enable_link()
1068 mcs = sta_ptr->tdls_cap.ht_capb.mcs; in mwifiex_tdls_process_enable_link()
1070 sta_ptr->is_11n_enabled = true; in mwifiex_tdls_process_enable_link()
1071 if (sta_ptr->is_11n_enabled) { in mwifiex_tdls_process_enable_link()
1072 if (le16_to_cpu(sta_ptr->tdls_cap.ht_capb.cap_info) & in mwifiex_tdls_process_enable_link()
1074 sta_ptr->max_amsdu = in mwifiex_tdls_process_enable_link()
1077 sta_ptr->max_amsdu = in mwifiex_tdls_process_enable_link()
1081 sta_ptr->ampdu_sta[i] = in mwifiex_tdls_process_enable_link()
1085 sta_ptr->ampdu_sta[i] = BA_STREAM_NOT_ALLOWED; in mwifiex_tdls_process_enable_link()
1087 if (sta_ptr->tdls_cap.extcap.ext_capab[3] & in mwifiex_tdls_process_enable_link()
1093 memset(sta_ptr->rx_seq, 0xff, sizeof(sta_ptr->rx_seq)); in mwifiex_tdls_process_enable_link()
1100 if (sta_ptr) { in mwifiex_tdls_process_enable_link()
1136 struct mwifiex_sta_node *sta_ptr; in mwifiex_get_tdls_link_status() local
1138 sta_ptr = mwifiex_get_sta_entry(priv, mac); in mwifiex_get_tdls_link_status()
1139 if (sta_ptr) in mwifiex_get_tdls_link_status()
1140 return sta_ptr->tdls_status; in mwifiex_get_tdls_link_status()
1148 struct mwifiex_sta_node *sta_ptr; in mwifiex_get_tdls_list() local
1161 list_for_each_entry(sta_ptr, &priv->sta_list, list) { in mwifiex_get_tdls_list()
1162 if (mwifiex_is_tdls_link_setup(sta_ptr->tdls_status)) { in mwifiex_get_tdls_list()
1163 ether_addr_copy(peer->peer_addr, sta_ptr->mac_addr); in mwifiex_get_tdls_list()
1177 struct mwifiex_sta_node *sta_ptr; in mwifiex_disable_all_tdls_links() local
1184 list_for_each_entry(sta_ptr, &priv->sta_list, list) { in mwifiex_disable_all_tdls_links()
1187 if (sta_ptr->is_11n_enabled) { in mwifiex_disable_all_tdls_links()
1196 mwifiex_restore_tdls_packets(priv, sta_ptr->mac_addr, in mwifiex_disable_all_tdls_links()
1198 memcpy(&tdls_oper.peer_mac, sta_ptr->mac_addr, ETH_ALEN); in mwifiex_disable_all_tdls_links()
1204 sta_ptr->mac_addr); in mwifiex_disable_all_tdls_links()