mac802154: Handle associating
[linux-2.6-block.git] / net / mac802154 / rx.c
index e2434b4fe51497e0c7941a5369c5974f1cee2c5f..d0e08613a36bffcd972f83d5738cd1735db77889 100644 (file)
@@ -93,6 +93,15 @@ void mac802154_rx_mac_cmd_worker(struct work_struct *work)
 
                queue_delayed_work(local->mac_wq, &local->beacon_work, 0);
                break;
+
+       case IEEE802154_CMD_ASSOCIATION_RESP:
+               dev_dbg(&mac_pkt->sdata->dev->dev, "processing ASSOC RESP\n");
+               if (!mac802154_is_associating(local))
+                       break;
+
+               mac802154_process_association_resp(mac_pkt->sdata, mac_pkt->skb);
+               break;
+
        default:
                break;
        }