Lines Matching refs:COAP_ATTR

34 #define COAP_ATTR(_name) QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ ## _name  macro
37 coap_offload_filter_policy[COAP_ATTR(FILTER_MAX) + 1] = {
38 [COAP_ATTR(FILTER_DEST_IPV4)] = {.type = NLA_U32},
39 [COAP_ATTR(FILTER_DEST_IPV4_IS_BC)] = {.type = NLA_FLAG},
40 [COAP_ATTR(FILTER_DEST_PORT)] = {.type = NLA_U16},
41 [COAP_ATTR(FILTER_MATCH_OFFSET)] = {.type = NLA_U32},
42 [COAP_ATTR(FILTER_MATCH_DATA)] = {
47 coap_offload_tx_ipv4_policy[COAP_ATTR(TX_IPV4_MAX) + 1] = {
48 [COAP_ATTR(TX_IPV4_SRC_ADDR)] = {.type = NLA_U32},
49 [COAP_ATTR(TX_IPV4_SRC_PORT)] = {.type = NLA_U16},
50 [COAP_ATTR(TX_IPV4_DEST_ADDR)] = {.type = NLA_U32},
51 [COAP_ATTR(TX_IPV4_DEST_IS_BC)] = {.type = NLA_FLAG},
52 [COAP_ATTR(TX_IPV4_DEST_PORT)] = {.type = NLA_U16},
56 coap_offload_reply_policy[COAP_ATTR(REPLY_MAX) + 1] = {
57 [COAP_ATTR(REPLY_SRC_IPV4)] = {.type = NLA_U32},
58 [COAP_ATTR(REPLY_FILTER)] =
60 [COAP_ATTR(REPLY_MSG)] = {
62 [COAP_ATTR(REPLY_CACHE_EXPTIME)] = {.type = NLA_U32},
66 coap_offload_periodic_tx_policy[COAP_ATTR(PERIODIC_TX_MAX) + 1] = {
67 [COAP_ATTR(PERIODIC_TX_IPV4)] =
69 [COAP_ATTR(PERIODIC_TX_PERIOD)] = {.type = NLA_U32},
70 [COAP_ATTR(PERIODIC_TX_MSG)] = {
75 coap_offload_policy[COAP_ATTR(MAX) + 1] = {
76 [COAP_ATTR(ACTION)] = {.type = NLA_U32 },
77 [COAP_ATTR(REQ_ID)] = {.type = NLA_U32 },
78 [COAP_ATTR(REPLY)] =
80 [COAP_ATTR(PERIODIC_TX)] =
96 struct nlattr *tb[COAP_ATTR(FILTER_MAX) + 1]; in wlan_cfg80211_coap_offload_reply_fill_filter()
108 if (wlan_cfg80211_nla_parse_nested(tb, COAP_ATTR(FILTER_MAX), in wlan_cfg80211_coap_offload_reply_fill_filter()
115 if (!tb[COAP_ATTR(FILTER_DEST_IPV4)]) { in wlan_cfg80211_coap_offload_reply_fill_filter()
120 params->dest_ip_v4 = nla_get_u32(tb[COAP_ATTR(FILTER_DEST_IPV4)]); in wlan_cfg80211_coap_offload_reply_fill_filter()
122 nla_get_flag(tb[COAP_ATTR(FILTER_DEST_IPV4_IS_BC)]); in wlan_cfg80211_coap_offload_reply_fill_filter()
124 if (!tb[COAP_ATTR(FILTER_DEST_PORT)]) { in wlan_cfg80211_coap_offload_reply_fill_filter()
129 params->dest_udp_port = nla_get_u16(tb[COAP_ATTR(FILTER_DEST_PORT)]); in wlan_cfg80211_coap_offload_reply_fill_filter()
131 if (!tb[COAP_ATTR(FILTER_MATCH_OFFSET)]) { in wlan_cfg80211_coap_offload_reply_fill_filter()
137 nla_get_u32(tb[COAP_ATTR(FILTER_MATCH_OFFSET)]); in wlan_cfg80211_coap_offload_reply_fill_filter()
139 if (!tb[COAP_ATTR(FILTER_MATCH_DATA)]) { in wlan_cfg80211_coap_offload_reply_fill_filter()
144 params->verify_len = nla_len(tb[COAP_ATTR(FILTER_MATCH_DATA)]); in wlan_cfg80211_coap_offload_reply_fill_filter()
150 params->verify = nla_data(tb[COAP_ATTR(FILTER_MATCH_DATA)]); in wlan_cfg80211_coap_offload_reply_fill_filter()
167 struct nlattr *tb[COAP_ATTR(REPLY_MAX) + 1]; in wlan_cfg80211_coap_offload_reply_enable()
178 if (wlan_cfg80211_nla_parse_nested(tb, COAP_ATTR(REPLY_MAX), in wlan_cfg80211_coap_offload_reply_enable()
185 attr = tb[COAP_ATTR(REPLY_SRC_IPV4)]; in wlan_cfg80211_coap_offload_reply_enable()
195 attr = tb[COAP_ATTR(REPLY_FILTER)]; in wlan_cfg80211_coap_offload_reply_enable()
200 attr = tb[COAP_ATTR(REPLY_MSG)]; in wlan_cfg80211_coap_offload_reply_enable()
209 attr = tb[COAP_ATTR(REPLY_CACHE_EXPTIME)]; in wlan_cfg80211_coap_offload_reply_enable()
232 struct nlattr *tb[COAP_ATTR(TX_IPV4_MAX) + 1]; in wlan_cfg80211_coap_offload_fill_tx_ipv4()
239 if (wlan_cfg80211_nla_parse_nested(tb, COAP_ATTR(TX_IPV4_MAX), in wlan_cfg80211_coap_offload_fill_tx_ipv4()
246 if (!tb[COAP_ATTR(TX_IPV4_SRC_ADDR)]) { in wlan_cfg80211_coap_offload_fill_tx_ipv4()
251 params->src_ip_v4 = nla_get_u32(tb[COAP_ATTR(TX_IPV4_SRC_ADDR)]); in wlan_cfg80211_coap_offload_fill_tx_ipv4()
252 if (tb[COAP_ATTR(TX_IPV4_SRC_PORT)]) in wlan_cfg80211_coap_offload_fill_tx_ipv4()
254 nla_get_u32(tb[COAP_ATTR(TX_IPV4_SRC_PORT)]); in wlan_cfg80211_coap_offload_fill_tx_ipv4()
256 if (!tb[COAP_ATTR(TX_IPV4_DEST_ADDR)]) { in wlan_cfg80211_coap_offload_fill_tx_ipv4()
261 params->dest_ip_v4 = nla_get_u32(tb[COAP_ATTR(TX_IPV4_DEST_ADDR)]); in wlan_cfg80211_coap_offload_fill_tx_ipv4()
263 nla_get_flag(tb[COAP_ATTR(TX_IPV4_DEST_IS_BC)]); in wlan_cfg80211_coap_offload_fill_tx_ipv4()
265 if (!tb[COAP_ATTR(TX_IPV4_DEST_PORT)]) { in wlan_cfg80211_coap_offload_fill_tx_ipv4()
271 nla_get_u32(tb[COAP_ATTR(TX_IPV4_DEST_PORT)]); in wlan_cfg80211_coap_offload_fill_tx_ipv4()
289 struct nlattr *tb[COAP_ATTR(PERIODIC_TX_MAX) + 1]; in wlan_cfg80211_coap_offload_periodic_tx_enable()
300 if (wlan_cfg80211_nla_parse_nested(tb, COAP_ATTR(PERIODIC_TX_MAX), in wlan_cfg80211_coap_offload_periodic_tx_enable()
307 if (!tb[COAP_ATTR(PERIODIC_TX_PERIOD)]) { in wlan_cfg80211_coap_offload_periodic_tx_enable()
312 param.timeout = nla_get_u32(tb[COAP_ATTR(PERIODIC_TX_PERIOD)]); in wlan_cfg80211_coap_offload_periodic_tx_enable()
313 attr_ipv4 = tb[COAP_ATTR(PERIODIC_TX_IPV4)]; in wlan_cfg80211_coap_offload_periodic_tx_enable()
320 if (!tb[COAP_ATTR(PERIODIC_TX_MSG)]) { in wlan_cfg80211_coap_offload_periodic_tx_enable()
325 param.coapmsg_len = nla_len(tb[COAP_ATTR(PERIODIC_TX_MSG)]); in wlan_cfg80211_coap_offload_periodic_tx_enable()
326 param.coapmsg = nla_data(tb[COAP_ATTR(PERIODIC_TX_MSG)]); in wlan_cfg80211_coap_offload_periodic_tx_enable()
416 if (hdd_wlan_nla_put_u64(reply_skb, COAP_ATTR(CACHE_INFO_TS), in wlan_cfg80211_coap_fill_buf_info()
418 nla_put_u32(reply_skb, COAP_ATTR(CACHE_INFO_SRC_IPV4), in wlan_cfg80211_coap_fill_buf_info()
420 nla_put(reply_skb, COAP_ATTR(CACHE_INFO_MSG), in wlan_cfg80211_coap_fill_buf_info()
467 attr = nla_nest_start(skb, COAP_ATTR(CACHES)); in wlan_cfg80211_coap_offload_cache_deliver()
628 struct nlattr *tb[COAP_ATTR(MAX) + 1]; in wlan_cfg80211_coap_offload()
633 if (wlan_cfg80211_nla_parse(tb, COAP_ATTR(MAX), in wlan_cfg80211_coap_offload()
639 if (!tb[COAP_ATTR(ACTION)]) { in wlan_cfg80211_coap_offload()
644 if (!tb[COAP_ATTR(REQ_ID)]) { in wlan_cfg80211_coap_offload()
649 action = nla_get_u32(tb[COAP_ATTR(ACTION)]); in wlan_cfg80211_coap_offload()
650 req_id = nla_get_u32(tb[COAP_ATTR(REQ_ID)]); in wlan_cfg80211_coap_offload()
653 attr = tb[COAP_ATTR(REPLY)]; in wlan_cfg80211_coap_offload()
662 attr = tb[COAP_ATTR(PERIODIC_TX)]; in wlan_cfg80211_coap_offload()