zd1211rw: stop beacons on remove_interface
[firefly-linux-kernel-4.4.55.git] / drivers / net / wireless / zd1211rw / zd_mac.c
index 418606ac1c3be8263b8f62bd9f15b00763254705..694e95d35fd437afc0dcf269ad20ec98232ef648 100644 (file)
@@ -765,6 +765,7 @@ static void zd_op_remove_interface(struct ieee80211_hw *hw,
 {
        struct zd_mac *mac = zd_hw_mac(hw);
        mac->type = IEEE80211_IF_TYPE_INVALID;
+       zd_set_beacon_interval(&mac->chip, 0);
        zd_write_mac_addr(&mac->chip, NULL);
 }