mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-10-15 12:34:55 +00:00
Update frequency bounds for additional 802.11 frequencies
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3194 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
parent
40f7b3960e
commit
62049fea24
|
@ -1220,10 +1220,10 @@ nm_ap_check_compatible (NMAccessPoint *self,
|
|||
|
||||
if (s_wireless->band) {
|
||||
if (!strcmp (s_wireless->band, "a")) {
|
||||
if (priv->freq < 5170 || priv->freq > 5825)
|
||||
if (priv->freq < 4915 || priv->freq > 5825)
|
||||
return FALSE;
|
||||
} else if (!strcmp (s_wireless->band, "bg")) {
|
||||
if (priv->freq < 2412 || priv->freq > 2472)
|
||||
if (priv->freq < 2412 || priv->freq > 2484)
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
@ -1414,7 +1414,7 @@ freq_to_channel (guint32 freq)
|
|||
{
|
||||
int i = 0;
|
||||
|
||||
if (freq > 5000) {
|
||||
if (freq > 4900) {
|
||||
while (a_table[i].chan && (a_table[i].freq != freq))
|
||||
i++;
|
||||
return a_table[i].chan;
|
||||
|
|
Loading…
Reference in a new issue