WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: bad wifi update?  (Read 539 times)

Offline thane

  • Hero Member
  • *****
  • Posts: 697
bad wifi update?
« on: September 25, 2024, 01:25:38 AM »
I'm running CorePure64 15.0 on a Lenovo Thinkpad X201.

The wifi worked on this machine until I yesterday (9/23/2024) updated the wpa_supplicant_dbus.tcz extension. After that the app appears to scan for networks successfully, but when I try to connect to mine I get this message and am not able to connect:

tgetattr: Inappropriate ioctl for device

I don't know what the command is (if any) to start wifi from a terminal to see if I'm missing a library or something.
[edit] usr/local/bin sudo wifi.sh [duh]. Doesn't help though, does the same thing as the desktop icon.

Suggestions?
« Last Edit: September 25, 2024, 01:37:36 AM by thane »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14757
Re: bad wifi update?
« Reply #1 on: September 25, 2024, 04:01:09 AM »
I use this to connect - the latest wpa_supplicant-dbus extension works fine for me:

Code: [Select]
cat /mnt/sdb1/conf/wpa_configure.conf
ctrl_interface=/var/run/wpa_supplicant

network={
        ssid="Livebox-62BC"
key_mgmt=WPA-PSK
proto=WPA2
pairwise=CCMP
group=CCMP
psk="blahblah"
}

Code: [Select]
#!/bin/sh -e
#
sudo cp /mnt/sdb1/conf/wpa_configure.conf /etc/wpa_configure.conf
#
tce-load -i firmware_iwlwifi-7260
tce-load -i wpa_supplicant-dbus
#
sleep 2
#
sudo wpa_supplicant -B -Dwext -i wlan0 -c/etc/wpa_configure.conf
#
sudo udhcpc -b -i wlan0 -x hostname:boxdell -p /var/run/udhcpc.wlan0.pid
#
# EOF

Offline thane

  • Hero Member
  • *****
  • Posts: 697
Re: bad wifi update?
« Reply #2 on: September 25, 2024, 06:49:22 PM »
The app sends credentials to the access point, displays the message "reading passphrase from stdin" and then the message "tcgetattr: Inappropriate ioctl for device". I deleted and reloaded wifi.tcz and its dependencies including wpa_supplicant-dbus.tcz, with the same result.

Based on what I'm seeing on the web, I wonder if there's a problem in the script.

Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1232
Re: bad wifi update?
« Reply #3 on: September 25, 2024, 07:59:18 PM »
Wpa_supplicant 2.11 has removed the ability to read the password from a file.  Which is how the WiFi script works.  I reverted this in. The package for piCore

http://www.tinycorelinux.net/15.x/aarch64/tcz/src/wpa_supplicant/patches/

Offline thane

  • Hero Member
  • *****
  • Posts: 697
Re: bad wifi update?
« Reply #4 on: September 26, 2024, 12:41:06 PM »
Thanks for figuring this out!

I'm running Corepure 64 on an Intel box, so I guess my only option is to revert to the older version of the extension.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11524
Re: bad wifi update?
« Reply #5 on: September 26, 2024, 03:28:43 PM »
Hi thane
This issue was brought by timbee up last August:
https://forum.tinycorelinux.net/index.php/topic,27222.0.html

You can either request a patched update of wpa_supplicant
or adjust your local copy of wifi.sh:
https://forum.tinycorelinux.net/index.php/topic,27222.msg174968.html#msg174968

Offline thane

  • Hero Member
  • *****
  • Posts: 697
Re: bad wifi update?
« Reply #6 on: September 26, 2024, 04:03:58 PM »
Thanks Rich.

I found a copy of the older extension so I can now reconnect on the Thinkpad. I realize this is a bit of a kludge so I'll look into the fixes you suggest.

Thanks everyone for your help!

thane

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1461
Re: bad wifi update?
« Reply #7 on: September 27, 2024, 08:28:38 PM »
I will recompile wpa_supplicant 2.11 with Paul_123's patch so that getting wifi password from stdin continues to work. Sorry for the breakage. I'm traveling but will resubmit the x86_64 extension tomorrow upon my return.

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1461
Re: bad wifi update?
« Reply #8 on: September 28, 2024, 07:25:09 PM »
Patched wpa_supplicant-dbus.tcz has been submitted for the TCL15 x86_64 repo :)

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14757
Re: bad wifi update?
« Reply #9 on: September 29, 2024, 04:21:50 AM »
updated wpa_suuplicant-dbus posted

Offline thane

  • Hero Member
  • *****
  • Posts: 697
Re: bad wifi update?
« Reply #10 on: September 29, 2024, 05:12:03 PM »
Updated the extension. Works for me!

Thanks everyone for your help.

thane