Lines Matching refs:res
376 struct cfg80211_pmsr_result *res) in nl80211_pmsr_send_ftm_res() argument
378 if (res->status == NL80211_PMSR_STATUS_FAILURE) { in nl80211_pmsr_send_ftm_res()
380 res->ftm.failure_reason)) in nl80211_pmsr_send_ftm_res()
383 if (res->ftm.failure_reason == in nl80211_pmsr_send_ftm_res()
385 res->ftm.busy_retry_time && in nl80211_pmsr_send_ftm_res()
387 res->ftm.busy_retry_time)) in nl80211_pmsr_send_ftm_res()
397 res->ftm.val)) \ in nl80211_pmsr_send_ftm_res()
403 if (res->ftm.val##_valid) \ in nl80211_pmsr_send_ftm_res()
411 res->ftm.val, \ in nl80211_pmsr_send_ftm_res()
418 if (res->ftm.val##_valid) \ in nl80211_pmsr_send_ftm_res()
422 if (res->ftm.burst_index >= 0) in nl80211_pmsr_send_ftm_res()
431 if (res->ftm.tx_rate_valid && in nl80211_pmsr_send_ftm_res()
432 !nl80211_put_sta_rate(msg, &res->ftm.tx_rate, in nl80211_pmsr_send_ftm_res()
435 if (res->ftm.rx_rate_valid && in nl80211_pmsr_send_ftm_res()
436 !nl80211_put_sta_rate(msg, &res->ftm.rx_rate, in nl80211_pmsr_send_ftm_res()
445 if (res->ftm.lci && res->ftm.lci_len && in nl80211_pmsr_send_ftm_res()
447 res->ftm.lci_len, res->ftm.lci)) in nl80211_pmsr_send_ftm_res()
449 if (res->ftm.civicloc && res->ftm.civicloc_len && in nl80211_pmsr_send_ftm_res()
451 res->ftm.civicloc_len, res->ftm.civicloc)) in nl80211_pmsr_send_ftm_res()
464 struct cfg80211_pmsr_result *res) in nl80211_pmsr_send_result() argument
480 if (nla_put(msg, NL80211_PMSR_PEER_ATTR_ADDR, ETH_ALEN, res->addr)) in nl80211_pmsr_send_result()
487 if (nla_put_u32(msg, NL80211_PMSR_RESP_ATTR_STATUS, res->status) || in nl80211_pmsr_send_result()
489 res->host_time, NL80211_PMSR_RESP_ATTR_PAD)) in nl80211_pmsr_send_result()
492 if (res->ap_tsf_valid && in nl80211_pmsr_send_result()
494 res->ap_tsf, NL80211_PMSR_RESP_ATTR_PAD)) in nl80211_pmsr_send_result()
497 if (res->final && nla_put_flag(msg, NL80211_PMSR_RESP_ATTR_FINAL)) in nl80211_pmsr_send_result()
504 typedata = nla_nest_start_noflag(msg, res->type); in nl80211_pmsr_send_result()
508 switch (res->type) { in nl80211_pmsr_send_result()
510 if (nl80211_pmsr_send_ftm_res(msg, res)) in nl80211_pmsr_send_result()