[][MAC80211[WiFi6/7]][hostapd][Avoid unnecessary beacon update]

[Description]
Refactor the condition check to make update beacon only for 6 GHz
co-location.

[Release-log]
N/A

Change-Id: I2a7ae3caed68c4a872e98b84c2a7258738119a23
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/8106128
2 files changed