WIFI problems hammer:30?

I got a new router and cant seem to make this thing work..

# WPA/WPA2 secured
#network={
#  ssid="MyNetwork"
#  psk="MyNetworkPassword"
#}

## Open/unsecured
network={
  ssid="Penis2"
  key_mgmt=NONE
}

country=US # United States

### You should not have to change the lines below #####################

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

dont judge my network name iv renamed it multiple times and at this point it is what it is.
if I type "ifconfig wlan0" i get nothing and if i type "sudo iwlist wlan0 scan" im able to see my network but for the life of me i cant get it to shake hands and be happy... any idea what im doing wrong? ive tried 3 different text editors even added a password to my wifi and changed the file to match. if i plug the netork cable in it fires right up but nothing over wifi. no power issues im running the 2.5 amp and its a pi 3b

try removing
#
from
network={
and
}
lines

it seems like he got those lines two times.
the first one got # and second one doesn't

but yeah I would also remove the first one.

I guess the editor messed the file up. I would suggest you start over with a fresh image and use notepad++ tp edit the file

1 Like

I've had issues with the country code etc not being in the correct order in the file.
Mine is:

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=US

network={
ssid="yourssid"
Key_mgmt=NONE
}

That didnt work either, im giving up on it. ive wasted 2 days trying to make this thing work. thanks for the help. anyone want a useless pi?

you do realise # starts a comment so that line does nothing!

Yes I tried this and it didn't even work idk what its deal is but I give up

One thing to try and see what's happening is do dmesg | more and look for messages about the wifi and see what's erroring