Lines Matching +full:data +full:- +full:rates

24 	 - ZERO_DBM_OFFSET)
27 static int symbol_build_supp_rates(u8 *buf, const __le16 *rates) in symbol_build_supp_rates() argument
34 rate = le16_to_cpu(rates[i]); in symbol_build_supp_rates()
45 static int prism_build_supp_rates(u8 *buf, const u8 *rates) in prism_build_supp_rates() argument
52 if (rates[i] == 0x0) in prism_build_supp_rates()
54 buf[i + 2] = rates[i]; in prism_build_supp_rates()
58 /* We might still have another 2 rates, which need to go in in prism_build_supp_rates()
59 * extended supported rates */ in prism_build_supp_rates()
60 if (i == 8 && rates[i] > 0) { in prism_build_supp_rates()
64 if (rates[i] == 0x0) in prism_build_supp_rates()
66 buf[i + 2] = rates[i]; in prism_build_supp_rates()
68 buf[11] = i - 8; in prism_build_supp_rates()
90 len = le16_to_cpu(bss->a.essid_len); in orinoco_add_hostscan_result()
95 memcpy(&ie_buf[2], bss->a.essid, len); in orinoco_add_hostscan_result()
99 switch (priv->firmware_type) { in orinoco_add_hostscan_result()
101 ie_len += symbol_build_supp_rates(ie, bss->s.rates); in orinoco_add_hostscan_result()
105 ie_len += prism_build_supp_rates(ie, bss->p.rates); in orinoco_add_hostscan_result()
114 le16_to_cpu(bss->a.channel), NL80211_BAND_2GHZ); in orinoco_add_hostscan_result()
118 bss->a.channel, freq); in orinoco_add_hostscan_result()
122 capability = le16_to_cpu(bss->a.capabilities); in orinoco_add_hostscan_result()
123 beacon_interval = le16_to_cpu(bss->a.beacon_interv); in orinoco_add_hostscan_result()
124 signal = SIGNAL_TO_MBM(le16_to_cpu(bss->a.level)); in orinoco_add_hostscan_result()
127 bss->a.bssid, timestamp, capability, in orinoco_add_hostscan_result()
148 ie_len = len - sizeof(*bss); in orinoco_add_extscan_result()
149 ie = cfg80211_find_ie(WLAN_EID_DS_PARAMS, bss->data, ie_len); in orinoco_add_extscan_result()
154 timestamp = le64_to_cpu(bss->timestamp); in orinoco_add_extscan_result()
155 capability = le16_to_cpu(bss->capabilities); in orinoco_add_extscan_result()
156 beacon_interval = le16_to_cpu(bss->beacon_interval); in orinoco_add_extscan_result()
157 ie = bss->data; in orinoco_add_extscan_result()
158 signal = SIGNAL_TO_MBM(bss->level); in orinoco_add_extscan_result()
161 bss->bssid, timestamp, capability, in orinoco_add_extscan_result()
171 int offset; /* In the scan data */ in orinoco_add_hostscan_results()
175 switch (priv->firmware_type) { in orinoco_add_hostscan_results()
186 * frame for a 68-byte atom. 76-byte atoms have 0 there. in orinoco_add_hostscan_results()
201 if (priv->has_hostscan) { in orinoco_add_hostscan_results()
206 "data: %zu\n", priv->ndev->name, in orinoco_add_hostscan_results()
221 if ((len - offset) % atom_len) { in orinoco_add_hostscan_results()
222 printk(KERN_ERR "%s: Unexpected scan data length %zu, " in orinoco_add_hostscan_results()
223 "atom_len %zu, offset %d\n", priv->ndev->name, len, in orinoco_add_hostscan_results()
239 if (priv->scan_request) { in orinoco_add_hostscan_results()
244 cfg80211_scan_done(priv->scan_request, &info); in orinoco_add_hostscan_results()
245 priv->scan_request = NULL; in orinoco_add_hostscan_results()
251 if (priv->scan_request) { in orinoco_scan_done()
256 cfg80211_scan_done(priv->scan_request, &info); in orinoco_scan_done()
257 priv->scan_request = NULL; in orinoco_scan_done()