Lines Matching refs:pos

125 	u8 rates[MWIFIEX_SUPPORTED_RATES], *pos;
139 pos = skb_put(skb, supp_rates_size + 2);
140 *pos++ = WLAN_EID_SUPP_RATES;
141 *pos++ = supp_rates_size;
142 memcpy(pos, rates, supp_rates_size);
146 pos = skb_put(skb, ext_rates_size + 2);
147 *pos++ = WLAN_EID_EXT_SUPP_RATES;
148 *pos++ = ext_rates_size;
149 memcpy(pos, rates + MWIFIEX_TDLS_SUPPORTED_RATES,
160 u8 *pos;
163 pos = (void *)skb_put(skb, 4);
164 *pos++ = WLAN_EID_AID;
165 *pos++ = 2;
166 *pos++ = le16_to_cpu(assoc_rsp->a_id);
175 u8 *pos;
177 pos = (void *)skb_put(skb, sizeof(struct ieee80211_vht_cap) + 2);
178 *pos++ = WLAN_EID_VHT_CAPABILITY;
179 *pos++ = sizeof(struct ieee80211_vht_cap);
184 memcpy(pos, &vht_cap, sizeof(vht_cap));
197 u8 *pos;
206 pos = (void *)skb_put(skb, sizeof(struct ieee80211_ht_operation) + 2);
207 *pos++ = WLAN_EID_HT_OPERATION;
208 *pos++ = sizeof(struct ieee80211_ht_operation);
209 ht_oper = (void *)pos;
240 u8 *pos, ap_supp_chwd_set, chan_bw;
264 pos = (void *)skb_put(skb, sizeof(struct ieee80211_vht_operation) + 2);
265 *pos++ = WLAN_EID_VHT_OPERATION;
266 *pos++ = sizeof(struct ieee80211_vht_operation);
267 vht_oper = (struct ieee80211_vht_operation *)pos;
363 u8 *pos = (void *)skb_put(skb, 3);
365 *pos++ = WLAN_EID_QOS_CAPA;
366 *pos++ = 1;
367 *pos++ = MWIFIEX_TDLS_DEF_QOS_CAPAB;
379 u8 radio, *pos;
402 pos = (void *)skb_put(skb, sizeof(struct ieee80211_ht_cap) + 2);
403 *pos++ = WLAN_EID_HT_CAPABILITY;
404 *pos++ = sizeof(struct ieee80211_ht_cap);
405 ht_cap = (void *)pos;
439 pos = (void *)skb_put(skb, sizeof(struct ieee80211_ht_cap) + 2);
440 *pos++ = WLAN_EID_HT_CAPABILITY;
441 *pos++ = sizeof(struct ieee80211_ht_cap);
442 ht_cap = (void *)pos;
628 u8 radio, *pos;
642 pos = skb_put(skb, ETH_ALEN);
655 memmove(pos + ETH_ALEN, &mgmt->u.action.category,
658 memcpy(pos, bc_addr, ETH_ALEN);
666 pos = (void *)skb_put(skb, sizeof(struct ieee80211_ht_cap) + 2);
667 *pos++ = WLAN_EID_HT_CAPABILITY;
668 *pos++ = sizeof(struct ieee80211_ht_cap);
669 ht_cap = (void *)pos;
704 u8 *pos;
738 pos = skb_put(skb, MWIFIEX_MGMT_FRAME_HEADER_SIZE + sizeof(pkt_len));
739 memset(pos, 0, MWIFIEX_MGMT_FRAME_HEADER_SIZE + sizeof(pkt_len));
740 memcpy(pos, &pkt_type, sizeof(pkt_type));
741 memcpy(pos + sizeof(pkt_type), &tx_control, sizeof(tx_control));
782 u8 *peer, *pos, *end;
804 pos = buf + sizeof(struct ethhdr) + 4;
806 cap = cpu_to_le16(*(u16 *)pos);
808 pos += 2;
815 pos = buf + sizeof(struct ethhdr) + 6;
816 cap = cpu_to_le16(*(u16 *)pos);
818 pos += 2;
824 pos = buf + sizeof(struct ethhdr) + TDLS_CONFIRM_FIX_LEN;
838 for (end = pos + ie_len; pos + 1 < end; pos += 2 + pos[1]) {
839 if (pos + 2 + pos[1] > end)
842 switch (*pos) {
844 sta_ptr->tdls_cap.rates_len = pos[1];
845 for (i = 0; i < pos[1]; i++)
846 sta_ptr->tdls_cap.rates[i] = pos[i + 2];
851 for (i = 0; i < pos[1]; i++)
852 sta_ptr->tdls_cap.rates[basic + i] = pos[i + 2];
853 sta_ptr->tdls_cap.rates_len += pos[1];
856 memcpy((u8 *)&sta_ptr->tdls_cap.ht_capb, pos,
861 memcpy(&sta_ptr->tdls_cap.ht_oper, pos,
865 sta_ptr->tdls_cap.coex_2040 = pos[2];
868 memcpy((u8 *)&sta_ptr->tdls_cap.extcap, pos,
870 min_t(u8, pos[1], 8));
873 memcpy((u8 *)&sta_ptr->tdls_cap.rsn_ie, pos,
875 min_t(u8, pos[1], IEEE_MAX_IE_SIZE -
879 sta_ptr->tdls_cap.qos_info = pos[2];
883 memcpy(&sta_ptr->tdls_cap.vhtoper, pos,
888 memcpy((u8 *)&sta_ptr->tdls_cap.vhtcap, pos,
896 le16_to_cpu(*(__le16 *)(pos + 2));