Lines Matching refs:attr
683 wlan_parse_afc_rsp_freq_psd(struct nlattr *attr, struct afc_resp_extracted *rsp) in wlan_parse_afc_rsp_freq_psd() argument
691 nla_for_each_nested(cur_attr, attr, rem) { in wlan_parse_afc_rsp_freq_psd()
733 wlan_parse_afc_rsp_opclass_eirp(struct nlattr *attr, in wlan_parse_afc_rsp_opclass_eirp() argument
743 nla_for_each_nested(cur_attr, attr, rem) { in wlan_parse_afc_rsp_opclass_eirp()
820 static struct afc_resp_extracted *extract_afc_resp(struct nlattr **attr) in extract_afc_resp() argument
825 if (!attr[QCA_WLAN_VENDOR_ATTR_AFC_RESP_TIME_TO_LIVE]) { in extract_afc_resp()
830 if (!attr[QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID]) { in extract_afc_resp()
835 if (!attr[QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_DATE]) { in extract_afc_resp()
840 if (!attr[QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_TIME]) { in extract_afc_resp()
845 if (!attr[QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFC_SERVER_RESP_CODE]) { in extract_afc_resp()
850 if (!attr[QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO]) { in extract_afc_resp()
855 if (!attr[QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO]) { in extract_afc_resp()
864 if (attr[QCA_WLAN_VENDOR_ATTR_AFC_RESP_DATA]) { in extract_afc_resp()
865 nl = attr[QCA_WLAN_VENDOR_ATTR_AFC_RESP_DATA]; in extract_afc_resp()
875 nla_get_u32(attr[QCA_WLAN_VENDOR_ATTR_AFC_RESP_TIME_TO_LIVE]); in extract_afc_resp()
878 nla_get_u32(attr[QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID]); in extract_afc_resp()
881 nla_get_u32(attr[QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_DATE]); in extract_afc_resp()
884 nla_get_u32(attr[QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_TIME]); in extract_afc_resp()
887 nla_get_s32(attr[QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFC_SERVER_RESP_CODE]); in extract_afc_resp()
889 if (wlan_parse_afc_rsp_freq_psd(attr[QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO], in extract_afc_resp()
895 if (wlan_parse_afc_rsp_opclass_eirp(attr[QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO], in extract_afc_resp()
1029 struct nlattr *attr[QCA_WLAN_VENDOR_ATTR_AFC_RESP_MAX + 1]; in wlan_cfg80211_vendor_afc_response() local
1035 if (wlan_cfg80211_nla_parse(attr, QCA_WLAN_VENDOR_ATTR_AFC_RESP_MAX, in wlan_cfg80211_vendor_afc_response()
1042 afc_rsp = extract_afc_resp(attr); in wlan_cfg80211_vendor_afc_response()