mirror of
https://github.com/classilla/tenfourfox.git
synced 2025-03-03 18:30:28 +00:00
#361: fix stupid bug with WiFi scanning
This commit is contained in:
parent
9620d6aa0b
commit
e8ee244caa
@ -161,8 +161,12 @@ nsresult
|
||||
nsWifiMonitor::DoScan()
|
||||
{
|
||||
// See bug 848435. Since we sort of support running under Rosetta on Snow
|
||||
// Leopard, we need to still support that path, sort of.
|
||||
// Leopard, we need to still support that path, sort of. Here's a better
|
||||
// fix, from TenFourFox issue 361.
|
||||
extern bool WiFiUsingSnowLeopard();
|
||||
return (WiFiUsingSnowLeopard()) ? DoScanOld() : DoScanWithCoreWLAN();
|
||||
if (MOZ_UNLIKELY(WiFiUsingSnowLeopard())) {
|
||||
nsresult rv = DoScanWithCoreWLAN();
|
||||
if (NS_SUCCEEDED(rv)) return rv;
|
||||
}
|
||||
return DoScanOld();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user