this post was submitted on 07 Feb 2025
17 points (94.7% liked)

Linux

49745 readers
1091 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

Solved: thanks to u/[email protected]; remember to add these USE flags to wpa_supplicant

net-wireless/wpa_supplicant wps wep ap fasteap eap-sim tkip uncommon-eap-types

I am facing this peculiar issue that i can connect to every WiFi connection except my router, it's a recent gentoo install with no display server, i am using a D-link WiFi USB card

What I have tried:

  • using iw dev (device) scan to list the ssid and try connecting with wpa_supplicant
    • dhcpcd waits for connection then times out (does connect succesfully to my phones hotspot)
  • gave up and spent 3 hours compiling NetworkManager
    • every ssid shows up in nmcli dev wifi list except my router
    • forcing a connection passing bssid shows id not found
    • manually setting the connection using nmcli add also does not work
    • iw dev (device) scan lists my routers ssid along with others
    • nothing is blocked in NetworkManager and I spent hours going back and forth with chatgpt trying to force a connection to no avail
  • tried changing router setting(including changing broadcasting channels verifying, black lists etc)

What i have ruled out

  • its not the dlink wifi card or the laptop, I can connect to my router just fine using nmcli in a live fedora instance on the same laptop

I have tried every conceivable thing and I cant find what the issue is, it's like my router and Gentoo have some bad blood between them

you are viewing a single comment's thread
view the rest of the comments
[–] dbkblk 9 points 1 day ago* (last edited 1 day ago) (2 children)

Have you checked the flags in wpa_supplicant? Some routers have non-default encryption schemes.

From my notes, use these USE flags as a test: net-wireless/wpa_supplicant wps wep ap fasteap eap-sim tkip uncommon-eap-types

I'm pretty sure this is your problem :)

[–] [email protected] 3 points 23 hours ago (1 children)

Thank you so much it just worked now!!

[–] dbkblk 3 points 23 hours ago

I'm glad that it has fixed your problem. Enjoy :)

[–] [email protected] 0 points 23 hours ago* (last edited 23 hours ago)

I added the use flags,

compiled wpa_supplicant again with --newuse,

restarted NM and wpa,

~~and still the same issue :(~~

did a killall wpa_supplicant and now my ssid shows up and i can connect to it :)