Lines Matching refs:res
398 struct cfg80211_pmsr_result *res) in nl80211_pmsr_send_ftm_res() argument
400 if (res->status == NL80211_PMSR_STATUS_FAILURE) { in nl80211_pmsr_send_ftm_res()
402 res->ftm.failure_reason)) in nl80211_pmsr_send_ftm_res()
405 if (res->ftm.failure_reason == in nl80211_pmsr_send_ftm_res()
407 res->ftm.busy_retry_time && in nl80211_pmsr_send_ftm_res()
409 res->ftm.busy_retry_time)) in nl80211_pmsr_send_ftm_res()
419 res->ftm.val)) \ in nl80211_pmsr_send_ftm_res()
425 if (res->ftm.val##_valid) \ in nl80211_pmsr_send_ftm_res()
433 res->ftm.val, \ in nl80211_pmsr_send_ftm_res()
440 if (res->ftm.val##_valid) \ in nl80211_pmsr_send_ftm_res()
444 if (res->ftm.burst_index >= 0) in nl80211_pmsr_send_ftm_res()
453 if (res->ftm.tx_rate_valid && in nl80211_pmsr_send_ftm_res()
454 !nl80211_put_sta_rate(msg, &res->ftm.tx_rate, in nl80211_pmsr_send_ftm_res()
457 if (res->ftm.rx_rate_valid && in nl80211_pmsr_send_ftm_res()
458 !nl80211_put_sta_rate(msg, &res->ftm.rx_rate, in nl80211_pmsr_send_ftm_res()
467 if (res->ftm.lci && res->ftm.lci_len && in nl80211_pmsr_send_ftm_res()
469 res->ftm.lci_len, res->ftm.lci)) in nl80211_pmsr_send_ftm_res()
471 if (res->ftm.civicloc && res->ftm.civicloc_len && in nl80211_pmsr_send_ftm_res()
473 res->ftm.civicloc_len, res->ftm.civicloc)) in nl80211_pmsr_send_ftm_res()
486 struct cfg80211_pmsr_result *res) in nl80211_pmsr_send_result() argument
502 if (nla_put(msg, NL80211_PMSR_PEER_ATTR_ADDR, ETH_ALEN, res->addr)) in nl80211_pmsr_send_result()
509 if (nla_put_u32(msg, NL80211_PMSR_RESP_ATTR_STATUS, res->status) || in nl80211_pmsr_send_result()
511 res->host_time, NL80211_PMSR_RESP_ATTR_PAD)) in nl80211_pmsr_send_result()
514 if (res->ap_tsf_valid && in nl80211_pmsr_send_result()
516 res->ap_tsf, NL80211_PMSR_RESP_ATTR_PAD)) in nl80211_pmsr_send_result()
519 if (res->final && nla_put_flag(msg, NL80211_PMSR_RESP_ATTR_FINAL)) in nl80211_pmsr_send_result()
526 typedata = nla_nest_start_noflag(msg, res->type); in nl80211_pmsr_send_result()
530 switch (res->type) { in nl80211_pmsr_send_result()
532 if (nl80211_pmsr_send_ftm_res(msg, res)) in nl80211_pmsr_send_result()