can_transmit_to_channel: fix 5GHz and 6GHz freq range

This commit is contained in:
garywill 2025-07-27 14:06:05 +08:00
parent 46583a758a
commit 60ce7d7e2e
1 changed files with 2 additions and 2 deletions

View File

@ -670,9 +670,9 @@ can_transmit_to_channel() {
if [[ $FREQ_BAND == "2.4" ]]; then
CHANNEL_FREQ_FILTER="(24)"
elif [[ $FREQ_BAND -eq 5 ]]; then
CHANNEL_FREQ_FILTER="(5[0-8])"
CHANNEL_FREQ_FILTER="(5[1-8])"
elif [[ $FREQ_BAND -eq 6 ]]; then
CHANNEL_FREQ_FILTER="((59)|(6[0-9])|(70))"
CHANNEL_FREQ_FILTER="((59)|(6[0-9])|(7[0-1]))"
fi
if [[ $USE_IWCONFIG -eq 0 ]]; then