mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-04 11:00:18 +01:00
Remove usage of iw_freq2float
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3452 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
parent
fab1135d97
commit
2a9cfa049e
1 changed files with 1 additions and 1 deletions
|
|
@ -369,7 +369,7 @@ static guint32 iw_freq_to_uint32 (struct iw_freq *freq)
|
|||
return 2484;
|
||||
}
|
||||
|
||||
return (guint32) (iw_freq2float (freq) / 1000000);
|
||||
return (guint32) (((double) freq->m) * pow (10, freq->e) / 1000000);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue