mirror of
https://github.com/lakinduakash/linux-wifi-hotspot.git
synced 2024-11-21 19:40:11 +00:00
Support to use dual channel if the adapter/driver support it.
This commit is contained in:
parent
0f9b572fbf
commit
aa670d1f57
@ -1546,8 +1546,14 @@ if [[ $NO_VIRT -eq 0 ]]; then
|
||||
FREQ_BAND=2.4
|
||||
fi
|
||||
if [[ $WIFI_IFACE_CHANNEL -ne $CHANNEL ]]; then
|
||||
echo ", fallback to channel ${WIFI_IFACE_CHANNEL}"
|
||||
CHANNEL=$WIFI_IFACE_CHANNEL
|
||||
if ( get_adapter_info ${IFACE} | grep "#channels <= 2" -q )
|
||||
then
|
||||
echo -e "\nmultiple channels supported"
|
||||
else
|
||||
echo -e "\nmultiple channels not supported",
|
||||
echo -e "\nfallback to channel ${WIFI_IFACE_CHANNEL}"
|
||||
CHANNEL=$WIFI_IFACE_CHANNEL
|
||||
fi
|
||||
else
|
||||
echo "channel------------------ ${CHANNEL}"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user