Solved: thanks to u/dbkblk@lemmy.world; 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

  • eldavi
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    15 hours ago

    does your router have logs and are you able to see the authentication requests or connection attempts? (you could also try setting up another ap with the same bssid and settings to see if it also ignores that too).

    without that and in your shoes; i would exactly duplicate the configuration and versions of your networking stack in your gentoo configuration; everything from the exact kernel version, to the module & firmware version; and onto the nmcli version and configuration. i would even compile the module along with the kernel if that’s what the live fedora was using.

    • Artemis_MystiqueOP
      link
      fedilink
      arrow-up
      1
      arrow-down
      1
      ·
      edit-2
      14 hours ago

      I have 2 cores with 2 threads, compiling anything again is not an option for me, atleast right now: My router only has system logs unfortunately it doesnt show any logging for connection attempts

      • eldavi
        link
        fedilink
        English
        arrow-up
        2
        ·
        14 hours ago

        it’s funny that you’re using gentoo and want to avoid recompiling since the last time i used gentoo was on a single core, first generation imac and it literally took me 3 days to compile the kernel along with the drivers that i needed to get the apple/ppc architecture to work correctly

        it got so hot that i couldn’t even touch it for another day. lol

        • Artemis_MystiqueOP
          link
          fedilink
          arrow-up
          1
          ·
          14 hours ago

          its the 3rd day for me, so as I said i don’t want to recompile anything right now

          • eldavi
            link
            fedilink
            English
            arrow-up
            2
            ·
            14 hours ago

            yes, exhaust all of the the other troubleshooting advice that the others gave you in this post before going down this rabbit hole; i only suggested it because it worked for me the last time i used gentoo, in my example.