Lines Matching refs:pos
36 static void wlan_wnm_parse_neighbor_report(t_u8 *pos, t_u8 len, struct wnm_neighbor_report *rep) in wlan_wnm_parse_neighbor_report() argument
44 (void)memcpy(rep->bssid, pos, MLAN_MAC_ADDR_LENGTH); in wlan_wnm_parse_neighbor_report()
45 rep->bssid_info = wlan_cpu_to_le32(*(t_u32 *)(void *)(pos + MLAN_MAC_ADDR_LENGTH)); in wlan_wnm_parse_neighbor_report()
46 rep->reg_class = *(pos + 10); in wlan_wnm_parse_neighbor_report()
47 rep->channel = *(pos + 11); in wlan_wnm_parse_neighbor_report()
48 rep->PhyType = *(pos + 12); in wlan_wnm_parse_neighbor_report()
49 pos += 13; in wlan_wnm_parse_neighbor_report()
56 e_id = *pos++; in wlan_wnm_parse_neighbor_report()
57 e_len = *pos++; in wlan_wnm_parse_neighbor_report()
71 rep->prefer = pos[0]; in wlan_wnm_parse_neighbor_report()
80 pos += e_len; in wlan_wnm_parse_neighbor_report()
95 t_u8 *pos = MNULL; in wlan_send_mgmt_wnm_btm_resp() local
114 pos = (t_u8 *)pmgmt_pkt_hdr + sizeof(wlan_mgmt_pkt); in wlan_send_mgmt_wnm_btm_resp()
115 pos[0] = (t_u8)IEEE_MGMT_ACTION_CATEGORY_WNM; in wlan_send_mgmt_wnm_btm_resp()
116 pos[1] = (t_u8)IEEE_MGMT_WNM_BTM_RESPONSE; in wlan_send_mgmt_wnm_btm_resp()
117 pos[2] = dialog_token; in wlan_send_mgmt_wnm_btm_resp()
118 pos[3] = (t_u8)status; in wlan_send_mgmt_wnm_btm_resp()
119 pos[4] = 0; /* delay */ in wlan_send_mgmt_wnm_btm_resp()
120 pos += 5; in wlan_send_mgmt_wnm_btm_resp()
124 (void)memcpy((void *)pos, (const void *)target_bssid, (size_t)MLAN_MAC_ADDR_LENGTH); in wlan_send_mgmt_wnm_btm_resp()
125 pos += 6; in wlan_send_mgmt_wnm_btm_resp()
129 (void)memcpy((void *)pos, "\0\0\0\0\0\0", (size_t)MLAN_MAC_ADDR_LENGTH); in wlan_send_mgmt_wnm_btm_resp()
130 pos += 6; in wlan_send_mgmt_wnm_btm_resp()
139 (void)memcpy((void *)pos, (const void *)tag_nr, (size_t)tag_len); in wlan_send_mgmt_wnm_btm_resp()
140 pos += tag_len; in wlan_send_mgmt_wnm_btm_resp()
142 pkt_len = (t_u16)(pos - (t_u8 *)pmgmt_pkt_hdr); in wlan_send_mgmt_wnm_btm_resp()
175 void wlan_process_mgmt_wnm_btm_req(t_u8 *pos, t_u8 *end, t_u8 *src_addr, t_u8 *dest_addr, bool prot… in wlan_process_mgmt_wnm_btm_req() argument
186 if (end - pos < 5) in wlan_process_mgmt_wnm_btm_req()
205 dialog_token = pos[0]; in wlan_process_mgmt_wnm_btm_req()
206 btm_mode = pos[1]; in wlan_process_mgmt_wnm_btm_req()
207 pos += 5; in wlan_process_mgmt_wnm_btm_req()
211 pos += 12; /* BSS Termination Duration */ in wlan_process_mgmt_wnm_btm_req()
233 while (end - pos >= 2 && wnm_num_neighbor_report < (t_u8)WLAN_WNM_MAX_NEIGHBOR_REPORT) in wlan_process_mgmt_wnm_btm_req()
235 t_u8 tag = *pos++; in wlan_process_mgmt_wnm_btm_req()
236 t_u8 len = *pos++; in wlan_process_mgmt_wnm_btm_req()
238 if ((int)len > (end - pos)) in wlan_process_mgmt_wnm_btm_req()
255 wlan_wnm_parse_neighbor_report(pos, len, rep); in wlan_process_mgmt_wnm_btm_req()
263 ptagnr = pos - 2; in wlan_process_mgmt_wnm_btm_req()
271 pos += len; in wlan_process_mgmt_wnm_btm_req()
356 t_u8 *pos = MNULL; in wlan_send_mgmt_bss_trans_query() local
375 pos = (t_u8 *)pmgmt_pkt_hdr + sizeof(wlan_mgmt_pkt); in wlan_send_mgmt_bss_trans_query()
376 pos[0] = (t_u8)IEEE_MGMT_ACTION_CATEGORY_WNM; in wlan_send_mgmt_bss_trans_query()
377 pos[1] = (t_u8)IEEE_MGMT_WNM_BTM_QUERY; in wlan_send_mgmt_bss_trans_query()
378 pos[2] = pmpriv->bss_trans_query_token++; in wlan_send_mgmt_bss_trans_query()
385 pos[3] = query_reason; in wlan_send_mgmt_bss_trans_query()
386 pos += 4; in wlan_send_mgmt_bss_trans_query()
388 meas_pkt_len = pos - (t_u8 *)pmgmt_pkt_hdr; in wlan_send_mgmt_bss_trans_query()