Lines Matching refs:na
745 #define NLA_DATA(na) ((void *)((char *)(na) + NLA_HDRLEN))
809 struct nlattr *na;
823 na = (struct nlattr *)GENLMSG_DATA(&msg);
824 na->nla_type = nla_type;
825 na->nla_len = nla_len + 1 + NLA_HDRLEN;
826 memcpy(NLA_DATA(na), nla_data, nla_len);
827 msg.n.nlmsg_len += NLMSG_ALIGN(na->nla_len);
844 struct nlattr *na;
863 na = (struct nlattr *)GENLMSG_DATA(&ans);
864 na = (struct nlattr *)((char *)na + NLA_ALIGN(na->nla_len));
865 if (na->nla_type == CTRL_ATTR_FAMILY_ID) {
866 id = *(__u16 *)NLA_DATA(na);
868 na = (struct nlattr *)((char *)na + NLA_ALIGN(na->nla_len));
873 struct nlattr *na;
888 na = (struct nlattr *)GENLMSG_DATA(&msg);
889 na->nla_type = NL80211_ATTR_WIPHY;
890 na->nla_len = 4 + NLA_HDRLEN;
891 *(u32 *)NLA_DATA(na) = 0;
892 msg.n.nlmsg_len += NLMSG_ALIGN(na->nla_len);
894 na = (struct nlattr *)((char *)na + NLMSG_ALIGN(na->nla_len));
895 na->nla_type = NL80211_ATTR_IFINDEX;
896 na->nla_len = 4 + NLA_HDRLEN;
897 *(u32 *)NLA_DATA(na) = 24;
898 msg.n.nlmsg_len += NLMSG_ALIGN(na->nla_len);
930 struct nlattr *na;
946 na = (struct nlattr *)GENLMSG_DATA(&msg);
947 na->nla_type = NL80211_ATTR_IFINDEX;
948 na->nla_len = 4 + NLA_HDRLEN;
949 *(u32 *)NLA_DATA(na) = if_index;
950 msg.n.nlmsg_len += NLMSG_ALIGN(na->nla_len);
964 na = (struct nlattr *)GENLMSG_DATA(&ans);
965 *ifindex = *(u32 *)NLA_DATA(na);
967 na = (struct nlattr *)((char *)na + NLA_ALIGN(na->nla_len));
968 strcpy(ifname, NLA_DATA(na));
970 na = (struct nlattr *)((char *)na + NLA_ALIGN(na->nla_len));
971 *wiphyid = *(u32 *)NLA_DATA(na);
1000 struct nlattr *na;
1015 na = (struct nlattr *)GENLMSG_DATA(&msg);
1016 na->nla_type = NL80211_ATTR_VENDOR_ID;
1017 na->nla_len = 4 + NLA_HDRLEN;
1018 *(u32 *)NLA_DATA(na) = QCA_NL80211_VENDOR_ID;
1019 msg.n.nlmsg_len += NLMSG_ALIGN(na->nla_len);
1021 na = (struct nlattr *)((char *)na + NLMSG_ALIGN(na->nla_len));
1022 na->nla_type = NL80211_ATTR_VENDOR_SUBCMD;
1023 na->nla_len = 4 + NLA_HDRLEN;
1024 *(u32 *)NLA_DATA(na) = QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST;
1025 msg.n.nlmsg_len += NLMSG_ALIGN(na->nla_len);
1027 na = (struct nlattr *)((char *)na + NLMSG_ALIGN(na->nla_len));
1028 na->nla_type = NL80211_ATTR_IFINDEX;
1029 na->nla_len = 4 + NLA_HDRLEN;
1030 *(u32 *)NLA_DATA(na) = ifindex;
1031 msg.n.nlmsg_len += NLMSG_ALIGN(na->nla_len);
1089 na = (struct nlattr *)((char *)na + NLMSG_ALIGN(na->nla_len));
1090 na->nla_type = NL80211_ATTR_VENDOR_DATA;
1091 na->nla_len = data_size + NLA_HDRLEN;
1092 memcpy(NLA_DATA(na), data, data_size);
1093 msg.n.nlmsg_len += NLMSG_ALIGN(na->nla_len);
1107 na = (struct nlattr *)GENLMSG_DATA(&ans);
1108 char *temp = na;
1112 nla_for_each_attr(nla, na, ret - 20, rem) {