summaryrefslogtreecommitdiff
path: root/net/mac802154/scan.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac802154/scan.c')
-rw-r--r--net/mac802154/scan.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/net/mac802154/scan.c b/net/mac802154/scan.c
index 5873da634fb4..1c0eeaa76560 100644
--- a/net/mac802154/scan.c
+++ b/net/mac802154/scan.c
@@ -781,6 +781,12 @@ int mac802154_process_association_req(struct ieee802154_sub_if_data *sdata,
unlikely(dest->short_addr != wpan_dev->short_addr))
return -ENODEV;
+ if (wpan_dev->parent) {
+ dev_dbg(&sdata->dev->dev,
+ "Ignoring ASSOC REQ, not the PAN coordinator\n");
+ return -ENODEV;
+ }
+
mutex_lock(&wpan_dev->association_lock);
memcpy(&assoc_req_pl, skb->data, sizeof(assoc_req_pl));