mac802154: Handle basic beaconing
[linux-2.6-block.git] / net / mac802154 / iface.c
index a5958d323ea370b54c0cfb99c54a7b2063c4aaf3..9d59caeb74e0b35a1a5b3cbd8338e0d6c0239d6a 100644 (file)
@@ -305,6 +305,9 @@ static int mac802154_slave_close(struct net_device *dev)
        if (mac802154_is_scanning(local))
                mac802154_abort_scan_locked(local, sdata);
 
+       if (mac802154_is_beaconing(local))
+               mac802154_stop_beacons_locked(local, sdata);
+
        netif_stop_queue(dev);
        local->open_count--;