• Home
  • Raw
  • Download

Lines Matching refs:msg

328 	struct sk_buff *msg;  in cfg80211_pmsr_complete()  local
333 msg = nlmsg_new(NLMSG_DEFAULT_SIZE, gfp); in cfg80211_pmsr_complete()
334 if (!msg) in cfg80211_pmsr_complete()
337 hdr = nl80211hdr_put(msg, 0, 0, 0, in cfg80211_pmsr_complete()
342 if (nla_put_u32(msg, NL80211_ATTR_WIPHY, rdev->wiphy_idx) || in cfg80211_pmsr_complete()
343 nla_put_u64_64bit(msg, NL80211_ATTR_WDEV, wdev_id(wdev), in cfg80211_pmsr_complete()
347 if (nla_put_u64_64bit(msg, NL80211_ATTR_COOKIE, req->cookie, in cfg80211_pmsr_complete()
351 genlmsg_end(msg, hdr); in cfg80211_pmsr_complete()
352 genlmsg_unicast(wiphy_net(wdev->wiphy), msg, req->nl_portid); in cfg80211_pmsr_complete()
355 nlmsg_free(msg); in cfg80211_pmsr_complete()
375 static int nl80211_pmsr_send_ftm_res(struct sk_buff *msg, in nl80211_pmsr_send_ftm_res() argument
379 if (nla_put_u32(msg, NL80211_PMSR_FTM_RESP_ATTR_FAIL_REASON, in nl80211_pmsr_send_ftm_res()
386 nla_put_u32(msg, NL80211_PMSR_FTM_RESP_ATTR_BUSY_RETRY_TIME, in nl80211_pmsr_send_ftm_res()
395 if (nla_put_##tp(msg, \ in nl80211_pmsr_send_ftm_res()
409 if (nla_put_u64_64bit(msg, \ in nl80211_pmsr_send_ftm_res()
432 !nl80211_put_sta_rate(msg, &res->ftm.tx_rate, in nl80211_pmsr_send_ftm_res()
436 !nl80211_put_sta_rate(msg, &res->ftm.rx_rate, in nl80211_pmsr_send_ftm_res()
446 nla_put(msg, NL80211_PMSR_FTM_RESP_ATTR_LCI, in nl80211_pmsr_send_ftm_res()
450 nla_put(msg, NL80211_PMSR_FTM_RESP_ATTR_CIVICLOC, in nl80211_pmsr_send_ftm_res()
463 static int nl80211_pmsr_send_result(struct sk_buff *msg, in nl80211_pmsr_send_result() argument
468 pmsr = nla_nest_start_noflag(msg, NL80211_ATTR_PEER_MEASUREMENTS); in nl80211_pmsr_send_result()
472 peers = nla_nest_start_noflag(msg, NL80211_PMSR_ATTR_PEERS); in nl80211_pmsr_send_result()
476 peer = nla_nest_start_noflag(msg, 1); in nl80211_pmsr_send_result()
480 if (nla_put(msg, NL80211_PMSR_PEER_ATTR_ADDR, ETH_ALEN, res->addr)) in nl80211_pmsr_send_result()
483 resp = nla_nest_start_noflag(msg, NL80211_PMSR_PEER_ATTR_RESP); in nl80211_pmsr_send_result()
487 if (nla_put_u32(msg, NL80211_PMSR_RESP_ATTR_STATUS, res->status) || in nl80211_pmsr_send_result()
488 nla_put_u64_64bit(msg, NL80211_PMSR_RESP_ATTR_HOST_TIME, in nl80211_pmsr_send_result()
493 nla_put_u64_64bit(msg, NL80211_PMSR_RESP_ATTR_AP_TSF, in nl80211_pmsr_send_result()
497 if (res->final && nla_put_flag(msg, NL80211_PMSR_RESP_ATTR_FINAL)) in nl80211_pmsr_send_result()
500 data = nla_nest_start_noflag(msg, NL80211_PMSR_RESP_ATTR_DATA); in nl80211_pmsr_send_result()
504 typedata = nla_nest_start_noflag(msg, res->type); in nl80211_pmsr_send_result()
510 if (nl80211_pmsr_send_ftm_res(msg, res)) in nl80211_pmsr_send_result()
517 nla_nest_end(msg, typedata); in nl80211_pmsr_send_result()
518 nla_nest_end(msg, data); in nl80211_pmsr_send_result()
519 nla_nest_end(msg, resp); in nl80211_pmsr_send_result()
520 nla_nest_end(msg, peer); in nl80211_pmsr_send_result()
521 nla_nest_end(msg, peers); in nl80211_pmsr_send_result()
522 nla_nest_end(msg, pmsr); in nl80211_pmsr_send_result()
535 struct sk_buff *msg; in cfg80211_pmsr_report() local
547 msg = nlmsg_new(NLMSG_DEFAULT_SIZE, gfp); in cfg80211_pmsr_report()
548 if (!msg) in cfg80211_pmsr_report()
551 hdr = nl80211hdr_put(msg, 0, 0, 0, NL80211_CMD_PEER_MEASUREMENT_RESULT); in cfg80211_pmsr_report()
555 if (nla_put_u32(msg, NL80211_ATTR_WIPHY, rdev->wiphy_idx) || in cfg80211_pmsr_report()
556 nla_put_u64_64bit(msg, NL80211_ATTR_WDEV, wdev_id(wdev), in cfg80211_pmsr_report()
560 if (nla_put_u64_64bit(msg, NL80211_ATTR_COOKIE, req->cookie, in cfg80211_pmsr_report()
564 err = nl80211_pmsr_send_result(msg, result); in cfg80211_pmsr_report()
570 genlmsg_end(msg, hdr); in cfg80211_pmsr_report()
571 genlmsg_unicast(wiphy_net(wdev->wiphy), msg, req->nl_portid); in cfg80211_pmsr_report()
574 nlmsg_free(msg); in cfg80211_pmsr_report()