Lines Matching defs:sp
230 const struct ieee80211_scanparams *sp,
267 if (sp->ssid[1] != 0 &&
269 memcpy(ise->se_ssid, sp->ssid, 2+sp->ssid[1]);
270 KASSERT(sp->rates[1] <= IEEE80211_RATE_MAXSIZE,
271 ("rate set too large: %u", sp->rates[1]));
272 memcpy(ise->se_rates, sp->rates, 2+sp->rates[1]);
273 if (sp->xrates != NULL) {
275 KASSERT(sp->xrates[1] <= IEEE80211_RATE_MAXSIZE,
276 ("xrate set too large: %u", sp->xrates[1]));
277 memcpy(ise->se_xrates, sp->xrates, 2+sp->xrates[1]);
281 if ((sp->status & IEEE80211_BPARSE_OFFCHAN) == 0) {
292 memcpy(ise->se_tstamp.data, sp->tstamp, sizeof(ise->se_tstamp));
293 ise->se_intval = sp->bintval;
294 ise->se_capinfo = sp->capinfo;
296 if (sp->meshid != NULL && sp->meshid[1] != 0)
297 memcpy(ise->se_meshid, sp->meshid, 2+sp->meshid[1]);
304 if (sp->status & IEEE80211_BPARSE_OFFCHAN) {
308 * sp->chan has this value because it's used to calculate
311 c = ieee80211_find_channel_byieee(ic, sp->chan,
321 if (IEEE80211_IS_CHAN_HT(ise->se_chan) && sp->htcap == NULL) {
329 ise->se_fhdwell = sp->fhdwell;
330 ise->se_fhindex = sp->fhindex;
331 ise->se_erp = sp->erp;
332 ise->se_timoff = sp->timoff;
333 if (sp->tim != NULL) {
335 (const struct ieee80211_tim_ie *) sp->tim;
338 if (sp->country != NULL) {
340 (const struct ieee80211_country_ie *) sp->country;
365 (void) ieee80211_ies_init(&ise->se_ies, sp->ies, sp->ies_len);
378 KASSERT(sizeof(sp->bchan) == 1, ("bchan size"));
379 if (rssi > st->st_maxrssi[sp->bchan])
380 st->st_maxrssi[sp->bchan] = rssi;