[][MAC80211][WiFi6][hostapd][Fix DFS radar trigger issue during first setup CAC]

[Description]
Fix the DFS radar trigger issue during the CAC of the first setup.
For the CAC of the first setup, once radar is detected, it should enter
hostapd_dfs_start_channel_switch_cac for interface re-setup.
However, for DFS channel switch cases (interface is already setup), it should directly perform channel switch via hostapd_dfs_request_channel_switch.
Therefore, only clear the cac_started flag once the interface is already setup.

[Release-log]
N/A

Change-Id: Idfb46cdd7f9c229de1e1f45863a72bc29e7db823
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/8636930
1 file changed