WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [Solved] wifi dongle see routers but not mine - help?  (Read 1958 times)

aus9

  • Guest
[Solved] wifi dongle see routers but not mine - help?
« on: May 05, 2023, 04:27:30 AM »
first I have the same dongle as in the past, its a slow class N but I am on ethernet normally so its no big deal if I can not resolve this.

my upstream source in the past....no longer works for me as per post
http://forum.tinycorelinux.net/index.php/topic,26149.0.html
To save you reading it...routers are detected with ZERO sorry for the shout quality ....so IMHO they will never connect.

OK so I found 2 other  upstream sourcse and built the module and load it....but loading just one of course at the moment.

Do I have match for hardware...yes
Code: [Select]
modinfo 8188eu | grep 010C
alias:          usb:v2357p010Cd*dc*dsc*dp*ic*isc*ip*in*
lsusb | grep 2357
Protocol spec without prior Class and Subclass spec at line 23281
Bus 001 Device 004: ID 2357:010c TP-Link TL-WN722N v2/v3 [Realtek RTL8188EUS]

I actually have built 3 modules from 3 different sources....but the issue for me is the next output,
I have elected, at my skill level....to load and run $ sudo wifi.sh rather than the other tools at this stage

Code: [Select]
Select Wifi Network

    ESSID                  Enc Qual Channel Type
 1. iiNet5DD7B1             on 93   1 WPA
 2. AP_1609370253          off 76   1
 3. WiFi-467F               on 58   4 WPA
 4. iiNetD2462B             on 48   6 WPA
 5. Morts 2.4               on 48 11 WPA
 6. TelstraBCB2D8           on 47 11 WPA
 7. WiFi-C2CA               on 35   8 WPA
 8. TelstraA6498E           on 25 11 WPA
 9. TelstraC1B0EC           on 18   6 WPA
10. TelstraDE6627           on   9   1 WPA
11. Solar-WiFi225W1530     on   9 11 WPA
12. Solar-WiFi189W1745     on   0   1 WPA
13. TelstraB83A16           on   0   6 WPA

Enter selection ( 1 - 13 ) or (q)uit:

As you can see....quality of one router is 93% suggesting that my module has been correctly built.

But my dongle is right next to my modem/router because normally I am using ethernet.
None of those router names or devices such as the solars....are close to my router name....and I know what it supposed to be,
I have enabled both 2.4 and 5....and both are visible to my smart tv

Anyone know why I can not see my router in above output?

Thanks for reading

because I can not see my router...I am posting on ethernet so can not run a ifconfig eth0 down command
« Last Edit: May 06, 2023, 07:59:34 AM by Rich »

aus9

  • Guest
Re: wifi dongle see routers but not mine - help?
« Reply #1 on: May 05, 2023, 04:30:23 AM »
separate question....should I ask my neighbours to encrypt that access point ...router number 2 on list?

aus9

  • Guest
Re: wifi dongle see routers but not mine - help?
« Reply #2 on: May 05, 2023, 09:06:11 AM »
ok this boot up I can see in dmesg, which I had not seen in the 11x dmesgs
Quote
platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
platform regulatory.0: Falling back to sysfs fallback for: regulatory.db
cfg80211: failed to load regulatory.db

I will now search this issue but ...why should I see other routers and not mine?

2) In case its too close....this boot up I put dongle on an usb lead but no change to not finding my router name.

aus9

  • Guest
Re: wifi dongle see routers but not mine - help?
« Reply #3 on: May 05, 2023, 10:17:22 AM »
Ok got rid of the regulatory.db dmesg error after reading this post
https://unix.stackexchange.com/questions/459518/where-to-paste-regulatory-db-and-how
which claims that
Quote
If you have kernel version 4.15 or newer, the regulatory database format and location has been changed. It is now loaded using the same mechanism as the firmware files. The new files can be found at https://kernel.googlesource.com/pub/scm/linux/kernel/git/sforshee/wireless-regdb/ and you'll need two files, regulatory.db and regulatory.db.p7s. Place them into /lib/firmware/ directory.


I have not (as yet) tried to setup the X.509 certificates mentioned here
https://bbs.archlinux.org/viewtopic.php?pid=2055201#p2055201

but I did set up a config under /etc/modprobe.d/au.conf (new dir)
contents
Quote
options cfg80211 ieee80211_regdom="AU"

then loaded my kernel module.

If I package....I can ask that it be a dep of wireless-KERNEL but

Code: [Select]
tc@box:~$ dmesg | grep regulatory.db
tc@box:~$

and still can not see my router SSID

thanks for reading

Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1240
Re: wifi dongle see routers but not mine - help?
« Reply #4 on: May 05, 2023, 01:17:18 PM »
Is your router hidden (i.e. setup to broadcast its SSID)?  If it is, it will not work with the TC default scripts.  You will have to manually configure it.

aus9

  • Guest
Re: wifi dongle see routers but not mine - help?
« Reply #5 on: May 06, 2023, 02:28:25 AM »
Hi Paul_123

thanks for question. Its not but I will attempt to use commands to connect to it...when I get a chance.
Simple things first for me.

to anyone else, I just attempted to see if firmware could go to /usr/local/lib/firmware and I made
wireless-regdb.tcz a dep of TC64 14x wireless-KERNEL.tcz and then  in dmesg I see
platform regulatory.0: Direct firmware load for regulatory.db failed with error -2

in TC64
Code: [Select]
modinfo cfg80211 | grep firmware
firmware:       regulatory.db

there is some chat that some things may not be distributable, but my planned any arch TCE will have only database files and no private certs
---if I can connect to my unhidden (maybe hidden) router

I know its difficult to know if firmware has loaded...anyhow I shall build to /lib/firmware and see if dmesg drops message

EDIT lib/firmware works as per OP link
Code: [Select]
tc@box:~$ dmesg | grep regulatory.db
tc@box:~$
« Last Edit: May 06, 2023, 02:35:33 AM by aus9 »

aus9

  • Guest
Re: wifi dongle see routers but not mine - help?
« Reply #6 on: May 06, 2023, 04:03:05 AM »
I was trying to take Paul's advice but knew I would have to type in a long SSID and just as long passphrase.
so I renamed my 2.4 and 5 SSIDs to puss and cat. That shorter SSID appears to have made the difference
router SSID is now visible...WOO HOO

eth0 is down and I am typing on wifi.  And did not have to try and learn a manual command. And I know my module is good to submit too
with wireless-regdb

Hi Paul_123
Even tho it was not hidden...it was your advice that led me to solve this issue. A trap only for those spoilt on ethernet.
thanks for all your help

Hi Rich

Please mark as solved.
« Last Edit: May 06, 2023, 04:27:17 AM by aus9 »