Open Clae224 opened 6 years ago
I just changed my Wifi router's channel to 1 and it could see and connect to the network!
Moreover, changing the network back to channel 13 drops the connection but also makes it invisible to the device.
Can someone else test if they can connect to a channel 13 wifi hotspot? I set my laptop to a hotspot on channel 13 and the phone could still connect, so maybe it's just a very corner-case compatibility issue with my router/device. In any case, a workaround would just be to change the channel of the wifi access point.
Probably its the international settings that are not applied correctly on the phone. Channel 13 is not allowed everyhwere:
Could it be related to hardware and/or modem firmware? @Clae224 do you know whether it works with android on this particular device?
@doniks It worked under android on this device.
@Flohack74 There seems to be a problem with the wifi software in general... I switched language to English UK and rebooted and now the wifi module seems to be broken. In wifi settings, there was no button for wifi toggle on/off. After rebooting again and changing the language back, the wifi module seems to be somewhat functional... the toggle on/off is present now but I cant even use iwlist scan
- it returns wlan0 Interface doesn't support scanning : Network is down
and nmcli -p d
returns wlan0
as unavailable
. No wifi networks are visible from setting either.
Edit: running dmesg | grep -i bcmdhd
gives Complied in
etc. No errors. I've tried rebooting and setting the phone to US English and even German (Germany) for the hell of it. No dice, same unavailable wifi and no errors that I can find. On another note, there seems to be some places where translations are missing/patchy.
I also have an issue like this but with Ubuntu 15.04 (r3) on LGE Nexus 5
I also leave in Switzerland where they often use the channel 13. But my phone seams to just not detect any 5GHz AP
but anyway; it's not really recommended to choose extremity channel like 1 or 13
Might be related, during the installation I choose English US, because I'm an expat and don't speak German and won't my phone in French.
Now, I'll probably open a new issue for my 5GHz behavior ;)
The language selection does not influence the WiFI regulatory domain at all... Its just a language, not a country selector. To be fair this problem is inherited from upstream Ubuntu, I do not think that you can select the WiFi regulatory domains there either...
@Flohack74 you probably right; but what I was trying to point it's more in Switzerland channel 13 is available by default, so I tried and It wasn't working, so I was saying, maybe it's because I choose English as language, but if the language is not a country selector than ubuntu-touch have an issue with the channel 13.
BTW It's works fine on my laptop which have Ubuntu 16.04 than 18.04.
My second point is Ubuntu Touch seams not able to see 5GHz which is might @Clae224 issue too, because none of the networks expose by the scan are 5GHz
5Ghz Wi-Fi troubles appear to be a problem for all Nexus 5's after the 5.0 update: https://forum.xda-developers.com/google-nexus-5/help/finding-5ghz-wifi-signal-t2512372
Users in that thread had success by changing their 5Ghz Wi-Fi to certain channels. If this is the case on Android, I wonder if there's anything we can do about it in Ubuntu Touch.
I wonder if this could be related to #1018... My device disconnects when my network attempts to band-steer it to 5Ghz from 2.4.
@UniversalSuperBox
If it's a problem introduced by a later baseband/radio firmware, it's possible that flashing a pre-5.0 version of that can fix the problem. Google provides all current and historical factory images for their android devices.
I don't have Ubuntu Touch on my N5 right now so I can't test this.
Hi everyone,
I have just run into this issue with a Nexus 5, but let me add some extra details. I had the wifi working without issues for months; yesterday I tried to turn the mobile on but it stopped during booting, because the battery was low-charged (I forgot it).
After charging it, this morning I couldn't connect to my home wifi anymore because it was undetected, although present among Previous networks list (deleting from there didn't help..the same with the command sudo service network-manager restart
or with several reboots)
Then I tried using my primary mobile with the hotspot on and the Nexus 5 managed to connect to it
Have you checked ifconfig, if there is a WiFi adapter listed?
Have you checked ifconfig, if there is a WiFi adapter listed?
By running ifconfig
, I can only see the local loopback lo and the wlan0
Does this answer your question?
Yes so wlan0 is the one we are looking for. If there is wlan0, can you type ifconfig wlan0 and paste the result here (excluding your MAC addy)? BTW do you have a SIM card in the device?
Ok, cool! No SIM card is in the device (since it is my secondary one) and below you can find the output, which seems to be reasonable: Link encap: Ethernet UP BROADCAST MULTICAST MTU: 1500 Metric: 1 RX packets: 0 errors: 0 dropped: 0 overruns: 0 frame: 0 TX packets: 0 errors: 0 dropped: 0 overruns: 0 carrier: 0 collisions: 0 txqueuelen: 1000 RX bytes: 0 (0.0 B) TX bytes: 0 (0.0 B)
Well that looks like the kernel driver is there, but the WiFi is not being allocated by network manager. No idea what that can be. Can you also please gibe the output of rfkill list
Yes, sure! If the wifi is turned off: 0: phy0: Wireless LAN Soft blocked: yes Hard blocked: no 1: brcmfmac-wifi: Wireless LAN Soft blocked: yes Hard blocked: no 2: hci0: Bluetooth Soft blocked: yes Hard blocked: no When turning wifi on, the two "yes" in 0 and 1 turned to "no", as expected!
UPDATE: I don't know how it is possible, but now home Wifi is detected again with N5 at 6% of battery left! Yesterday I factory-resetted the N5, tried sudo iwlist wlan0 scan
and wpa_cli
to scan networks available, but nothing! Moreover, wpa_cli
reported: "_Could not connect to wpasupplicant: (nil) - retrying"
I'm going to turn it off and charge it! Let's see what happens..
UPDATE 2: It seems Wifi totally recovered by itself: everything works as before! I don't have an explanation for that
Hi guys, Sorry to bother you again, but I ran into the issue in the same way as before..However, I googled a bit more and I have something to share..maybe it could help:
My home Wi-Fi is set on channel 13 and I used two devices: a Nexus 5 (which cannot connect) and a BQ E4.5 (which can do it)
Well..the command iwlist wlan0 freq
shows all the available frequencies on the phone and among them,
As many of you already said, channels 12, 13 and 14 are not allowed all over the world, so the choice of enabling them has to rely on the country selector, I suppose..
By checking with iw reg get
, it seems there is no specific country selected on both devices, with only the code 00 being set (it should mean all world); however, I found only one difference in the following line (I don't know if it is important):
On both devices it seems it is missing the package crda and that's the reason why, creating the file /etc/modprobe.d/cfg80211.conf with the content options cfg80211 ieee80211_regdom=IT
didn't fix the issue on Nexus 5, as well as the command iw reg set IT
So, at the end of the story, it seems that on N5 the country selector isn't working properly..the obvious question would be: how do the N5 know when turning channels 12, 13 and 14 on/off? And how can this setting "vanish" suddenly?
Moreover, by googling a bit more, it seems that this issue is also there with Android and it was solved by putting a SIM card in the device: unfortunately I can't have a microSIM to test it..can anyone do it?
The last fact seems to imply that a SIM card can allow selection of a country that Wi-Fi can't..is that possible? Finally, I checked in Location Settings and the only option is by using internal GPS..is A-GPS available when connected to Wi-Fi?
Sorry for the long post, hoping it helps somehow..
Sorry to say, but CRDA sellection does not work at all on UT. I have no easy fix for this, it is unknown whats needed for it neither there is any API that could do it.
Steps to reproduce
Scan for WiFi networks.
Expected behavior
All networks that other devices can see should be shown.
Actual behavior
Some networks (my home wifi) cannot be seen.
Logfiles and additional information
Running
sudo iwlist wlan0 scan
shows neighbour's Wifi but not my home wifi.Wifi scan from Nexus 5:
Working wifi scan:
nmcli -p d
shows wlan0 (wifi) as 'disconnected'.dmesg | grep -i bcmdhd
shows a fewComplied in drivers/net/wireless/bcmdhd on
etc. messages, no errors.I can turn off/on wifi with the UI buttons. My home wifi is 2.4 Ghz and I've tried to disconnect other devices off the Wifi, as well as entering the wifi info as if it were a hidden network in settings.
Maybe there is a problem with 2.4GHz channel 13 Wifi?