New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] WiFi Scanning is not working on some models/WiFi Chip Revisions #33
Comments
Hi Sir, |
@ P.S I'm ready to help at any time, thanks. |
I might have found the coloration between your issue and the other person on telegram, both use syrian revision (possibly the wifi chip gatherers it from Mobile network) It seems that the ROM sends a request to to set the country to SY 08-10 00:14:38.953 16670 16670 I wpa_supplicant: wlan0: CTRL-EVENT-REGDOM-CHANGE init=USER type=COUNTRY alpha2=SY
On my device however, it sets to i dont know exactly what this revision entails, but it seems to be something to do with TX/RX Power regulation, Anyway, after that we get this error
and the wifi chip restarts, and so on and so fourth, I think, when the region is set to SY, it disables packet filtering, which seems to be required by the ROM , and thus errors out wifi when a sim is installed or ccode=SY
my device on the other hand reports dhd_enable_packet_filter as 1 this weekend ill wrap my head around the issue, and i think this time i might be able to solve it, hopefully. Thanks for the very valuable log. |
It seems its and issue with the WiFi country code as you suggest, can you check please the following links, I think it might help: I found some people taking about finding some custom Roms for their different phones have WiFi advance settings as an option to change WiFi country code, they have the exact issue and confirmed that it is because of the their country block the wifi somehow and they confirmed that they solve it by changing or spoofing the wifi/telephony country code, can you check that Sir. Moreover to above, please note that I changed some wifi prop through commands as you see in attached screenshot but unfortunately didn't help. |
Please note that I purchased my mobile from UAE, but I'm being in Syria. |
* There is a chance that the a3 driver is not properly compatible with our A1 Revision chips * And is causing WiFi not to properly scan while a sim is inserted (Syrian SIM cars so far) * This seems to be caused by region setter * More discussion here universal5433/android_device_samsung_trelte-common#33 (comment) * The issue is possibly related to DHD_SET_COUNTRY_SUPPORT
@godzellax Try this kernel unzip, then flash boot_bcmdhd4358.img in recovery (go to flash > press img > select the file > select BOOT for partition) with enough luck this might fix the issue, if not please send a new log_ball with the new kernel installed |
OMG, you did it Sir and ended the nightmare. I believe many people facing the same issue but no one fixed it except you. Now coming to a new questions, is it a permanent solution? Will it hurt my phone in any way? Will you include the fix in your next stable release? Would you if you don't mind explain to us the cause of the issue please. May god bless you and your team, |
Oops, I forgot that I have to re-root my phone so I though there was an issue. After applying root everything seems to be working fine. |
@godzellax wow i am equally surprised, here is the problem, very long time ago in 2019 i changed the WiFi driver in the kernel from BCM4358 DHD 1.47.42(Stock) to BCM4358a3 DHD 1.47.61 (The newer driver from the galaxy tab S2 with the same wifi chip as us but a newer version, and with android 7 support) , it has new internal features etc, commit that broke the wifi : universal5433/android_kernel_samsung_universal5433@9651661 commit that fixed wifi : universal5433/android_kernel_samsung_universal5433@560373c Basically thinking newer = better, and for the most part that is true except this new driver also has a function called "DHD_SET_COUNTRY_SUPPORT" which setting your device to a region that was not actually supported in the code, and then basically would disable network bands (so like 2.4ghz/5ghz was no longer existing) and then when the rom tried to do scan it said wait ? i dont see any radios available i have no idea how not many people have this problem but there are few people who im sure will be happy now that it is fixed. I dont see why this can't be a permeant solution, we go back to the hopefully more stable wifi driver and call it a day, and yes i see no problem in including this fix in all the future builds, i will also compile Helios kernel with the fix aswell (the kernel used on my touchwiz ROM) because another person has the problem there too. if we found any issues, then we can enable the new driver again, and try to disable the DHD_SET_COUNTRY_SUPPORT code that broke everything, once i get some time i might send you a kernel to try later. Thanks again for testing! |
OK, I'm glad to help and will check your post from time to time. I'm so happy that I revived my old poor phone from death by flashing your custom rom and almost all issues fixed. In regards to the kernel, I'd like to suggest if you don't mind a very useful and stable custom kernel I used for years without a single issue and fully customized to support almost everything we imagine to have. Actually I was using the following version with the latest official XSG rom : Any chance that it may work out of the box with your custom rom or it need an optimization for compatibility reason? Will it hurt if I flash it and check after backup my current kernel? Any risk? |
* Causes issues with some regions and disables WiFi freqency * refer to universal5433/android_device_samsung_trelte-common#33 (comment) This reverts commit cefe568.
* There is a chance that the a3 driver is not properly compatible with our A1 Revision chips * And is causing WiFi not to properly scan while a sim is inserted (Syrian SIM cars so far) * This seems to be caused by region setter * More discussion here universal5433/android_device_samsung_trelte-common#33 (comment) * The issue is possibly related to DHD_SET_COUNTRY_SUPPORT
Describe the bug
Multiple N910C/N910H Models face an issue with WiFi where the WiFi is ON, but does not show any networks.
The only way to scan is by disabling SIM or setting the device to airplane mode
Workaround
Current workarounds are the following :
1- Turn on airplane mode
2- restart the phone
3- connect to WiFi network
4- disable the airplane mode
The issue will return when WiFi disconnects
Another workaround is not using SIMCard, obviously not ideal.
Smartphone model (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: