mirror of
https://github.com/lakinduakash/linux-wifi-hotspot.git
synced 2024-11-24 21:20:12 +00:00
Changed the text on The GUI to GHz from MHz
The text "Custom frequency band set with ${FREQ_BAND}Mhz with channel ${CHANNEL}" is changed to "${FREQ_BAND}GHz"
This commit is contained in:
parent
fa1e4a0ac3
commit
b9602884d4
@ -1587,7 +1587,7 @@ if [[ $NO_VIRT -eq 0 ]]; then
|
|||||||
if is_wifi_connected ${WIFI_IFACE} && [[ $FREQ_BAND_SET -eq 0 ]]; then
|
if is_wifi_connected ${WIFI_IFACE} && [[ $FREQ_BAND_SET -eq 0 ]]; then
|
||||||
WIFI_IFACE_FREQ=$(iw dev ${WIFI_IFACE} link | grep -i freq | awk '{print $2}')
|
WIFI_IFACE_FREQ=$(iw dev ${WIFI_IFACE} link | grep -i freq | awk '{print $2}')
|
||||||
WIFI_IFACE_CHANNEL=$(ieee80211_frequency_to_channel ${WIFI_IFACE_FREQ})
|
WIFI_IFACE_CHANNEL=$(ieee80211_frequency_to_channel ${WIFI_IFACE_FREQ})
|
||||||
echo -n "${WIFI_IFACE} is already associated with channel ${WIFI_IFACE_CHANNEL} (${WIFI_IFACE_FREQ} MHz)"
|
echo -n "${WIFI_IFACE} is already associated with channel ${WIFI_IFACE_CHANNEL} (${WIFI_IFACE_FREQ} GHz)"
|
||||||
if is_5ghz_frequency $WIFI_IFACE_FREQ; then
|
if is_5ghz_frequency $WIFI_IFACE_FREQ; then
|
||||||
FREQ_BAND=5
|
FREQ_BAND=5
|
||||||
else
|
else
|
||||||
@ -1606,7 +1606,7 @@ if [[ $NO_VIRT -eq 0 ]]; then
|
|||||||
echo "channel------------------ ${CHANNEL}"
|
echo "channel------------------ ${CHANNEL}"
|
||||||
fi
|
fi
|
||||||
elif is_wifi_connected ${WIFI_IFACE} && [[ $FREQ_BAND_SET -eq 1 ]]; then
|
elif is_wifi_connected ${WIFI_IFACE} && [[ $FREQ_BAND_SET -eq 1 ]]; then
|
||||||
echo "Custom frequency band set with ${FREQ_BAND}Mhz with channel ${CHANNEL}"
|
echo "Custom frequency band set with ${FREQ_BAND}Ghz with channel ${CHANNEL}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user