mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-07 02:50:30 +01:00
wifi: work around more wl.o stupidity
Sometimes returns 0 for the current frequency when the radio is active. WTF?
This commit is contained in:
parent
71ad568cfb
commit
925119074d
1 changed files with 3 additions and 2 deletions
|
|
@ -594,9 +594,10 @@ get_active_ap (NMDeviceWifi *self,
|
|||
* is uncommon though, and the frequency check penalizes closed drivers we
|
||||
* can't fix. Because we're not total dicks, ignore the frequency condition
|
||||
* if the associated BSSID/SSID exists only in one band since that's most
|
||||
* likely the AP we want.
|
||||
* likely the AP we want. Sometimes wl.o returns a frequency of 0, so if
|
||||
* we can't match the AP based on frequency at all, just give up.
|
||||
*/
|
||||
if (match_nofreq && (found_a_band != found_bg_band)) {
|
||||
if (match_nofreq && ((found_a_band != found_bg_band) || (devfreq == 0))) {
|
||||
const struct ether_addr *ap_bssid = nm_ap_get_address (match_nofreq);
|
||||
const GByteArray *ap_ssid = nm_ap_get_ssid (match_nofreq);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue