Add the node BSSID to the usteer_node struct. This will be helpful in
the future when evaluating beacon reports from STAs.
Signed-off-by: David Bauer <mail@david-bauer.net>
if (!tb[NL80211_ATTR_WIPHY])
goto nla_put_failure;
+ if (!tb[NL80211_ATTR_MAC])
+ goto nla_put_failure;
+
ln->wiphy = nla_get_u32(tb[NL80211_ATTR_WIPHY]);
+ memcpy(node->bssid, nla_data(tb[NL80211_ATTR_MAC]), ETH_ALEN);
+
if (tb[NL80211_ATTR_SSID]) {
int len = nla_len(tb[NL80211_ATTR_SSID]);
void *c;
c = blobmsg_open_table(buf, usteer_node_name(node));
+ blobmsg_printf(buf, "bssid", MAC_ADDR_FMT, MAC_ADDR_DATA(node->bssid));
blobmsg_add_u32(buf, "freq", node->freq);
blobmsg_add_u32(buf, "n_assoc", node->n_assoc);
blobmsg_add_u32(buf, "noise", node->noise);
struct blob_attr *rrm_nr;
struct blob_attr *node_info;
char ssid[33];
+ uint8_t bssid[6];
bool disabled;
int freq;