Lines Matching refs:res
345 struct cfg80211_pmsr_result *res) in nl80211_pmsr_send_ftm_res() argument
347 if (res->status == NL80211_PMSR_STATUS_FAILURE) { in nl80211_pmsr_send_ftm_res()
349 res->ftm.failure_reason)) in nl80211_pmsr_send_ftm_res()
352 if (res->ftm.failure_reason == in nl80211_pmsr_send_ftm_res()
354 res->ftm.busy_retry_time && in nl80211_pmsr_send_ftm_res()
356 res->ftm.busy_retry_time)) in nl80211_pmsr_send_ftm_res()
366 res->ftm.val)) \ in nl80211_pmsr_send_ftm_res()
372 if (res->ftm.val##_valid) \ in nl80211_pmsr_send_ftm_res()
380 res->ftm.val, \ in nl80211_pmsr_send_ftm_res()
387 if (res->ftm.val##_valid) \ in nl80211_pmsr_send_ftm_res()
391 if (res->ftm.burst_index >= 0) in nl80211_pmsr_send_ftm_res()
400 if (res->ftm.tx_rate_valid && in nl80211_pmsr_send_ftm_res()
401 !nl80211_put_sta_rate(msg, &res->ftm.tx_rate, in nl80211_pmsr_send_ftm_res()
404 if (res->ftm.rx_rate_valid && in nl80211_pmsr_send_ftm_res()
405 !nl80211_put_sta_rate(msg, &res->ftm.rx_rate, in nl80211_pmsr_send_ftm_res()
414 if (res->ftm.lci && res->ftm.lci_len && in nl80211_pmsr_send_ftm_res()
416 res->ftm.lci_len, res->ftm.lci)) in nl80211_pmsr_send_ftm_res()
418 if (res->ftm.civicloc && res->ftm.civicloc_len && in nl80211_pmsr_send_ftm_res()
420 res->ftm.civicloc_len, res->ftm.civicloc)) in nl80211_pmsr_send_ftm_res()
433 struct cfg80211_pmsr_result *res) in nl80211_pmsr_send_result() argument
449 if (nla_put(msg, NL80211_PMSR_PEER_ATTR_ADDR, ETH_ALEN, res->addr)) in nl80211_pmsr_send_result()
456 if (nla_put_u32(msg, NL80211_PMSR_RESP_ATTR_STATUS, res->status) || in nl80211_pmsr_send_result()
458 res->host_time, NL80211_PMSR_RESP_ATTR_PAD)) in nl80211_pmsr_send_result()
461 if (res->ap_tsf_valid && in nl80211_pmsr_send_result()
463 res->ap_tsf, NL80211_PMSR_RESP_ATTR_PAD)) in nl80211_pmsr_send_result()
466 if (res->final && nla_put_flag(msg, NL80211_PMSR_RESP_ATTR_FINAL)) in nl80211_pmsr_send_result()
473 typedata = nla_nest_start_noflag(msg, res->type); in nl80211_pmsr_send_result()
477 switch (res->type) { in nl80211_pmsr_send_result()
479 if (nl80211_pmsr_send_ftm_res(msg, res)) in nl80211_pmsr_send_result()