|
@@ -7205,13 +7205,11 @@ static int hdd_parse_disable_chan_cmd(struct hdd_adapter *adapter, uint8_t *ptr)
|
|
|
hdd_debug("Number of channel to disable are: %d", temp_int);
|
|
|
|
|
|
if (!temp_int) {
|
|
|
- if (!wlan_hdd_restore_channels(hdd_ctx, false)) {
|
|
|
- /*
|
|
|
- * Free the cache channels only when the command is
|
|
|
- * received with num channels as 0
|
|
|
- */
|
|
|
- wlan_hdd_free_cache_channels(hdd_ctx);
|
|
|
- }
|
|
|
+ /*
|
|
|
+ * Restore and Free the cache channels when the command is
|
|
|
+ * received with num channels as 0
|
|
|
+ */
|
|
|
+ wlan_hdd_restore_channels(hdd_ctx, false);
|
|
|
return 0;
|
|
|
}
|
|
|
|