LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-11-2023, 06:35 AM   #1
Bbmr
LQ Newbie
 
Registered: Mar 2023
Distribution: Debian
Posts: 22

Rep: Reputation: 0
Error while configuring the TP Link USB wireless adapter driver for Linux


Hello,

I have a problem when configuring my TP-LINK USB Wifi driver (Model: TL-WN823N V3) for Slackware 13.1.

I followed the instruction manual, yet when I launched the command:

wpa_supplicant -Dwext -iwlan0 -c ./wpa_0_8.conf -B

Note that my kernel doesn't support 802.11 apparently.

It outputs an error at line 51: unknown global field 'config_methods=virtual_display virtual_push_button keypad'.
 
Old 04-11-2023, 06:00 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,854

Rep: Reputation: 161Reputation: 161
What is Wifi configuration, such as ssid, psk and so on?
 
Old 04-12-2023, 06:08 AM   #3
Bbmr
LQ Newbie
 
Registered: Mar 2023
Distribution: Debian
Posts: 22

Original Poster
Rep: Reputation: 0
Result of iwlist scanning:
Quote:
wlan0 Scan completed :
Cell 01 - Address: 2C:79: D7:2A:3C:70
ESSID:"Bbox-5756C323"
Protocol:IEEE 802.11bgn
Mode:Master
Frequency:2.437 GHz (Channel 6)
Encryption key: on
Bit Rates:144 Mb/s
Extra:wpa_ie=dd160050f20101000050f20401000050f20401000050f202
IE: WPA Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
Extra:
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
IE: Unknown: DD800050F204104A0001101044000102103B0001031047001042D4694D374F51702D482F204586CE211021000842726F6164 636F6D1023000842726F6164636F6D1024000631323334353610420004313233341054000800060050F20400011011000A42 726F6164636F6D415010080002200C103C0001011049000600372A000120
Quality=72/100 Signal level=100/100
Extra:fm=0003
Cell 02 - Address: 70:FC:8F:3D:03:2B
ESSID:"Freebox-3D032A"
Protocol:IEEE 802.11bgn
Mode:Master
Frequency:2.462 GHz (Channel 11)
Encryption key: on
Bit Rates:144 Mb/s
Extra:rsn_ie=30140100000fac040100000fac040100000fac020c00
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
IE: Unknown: DD220050F204104A00011010440001021057000101103C0001011049000600372A000120
Quality=0/100 Signal level=60/100
Extra:fm=0001
 
Old 04-12-2023, 08:31 PM   #4
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,854

Rep: Reputation: 161Reputation: 161
Good. The wlan0 can receive AP beacon. The next step: you need to configure the wlan0.
Please refer the URL, https://wiki.alienbase.nl/doku.php?id=slackware:network.
 
Old 04-13-2023, 05:11 AM   #5
Bbmr
LQ Newbie
 
Registered: Mar 2023
Distribution: Debian
Posts: 22

Original Poster
Rep: Reputation: 0
What does "ioctl[SIOCSIWAP]: Operation not permitted" mean ?
I got this error while running the rc.inet1 script (but above all while executing the wpa_supplicant command).

Last edited by Bbmr; 04-13-2023 at 05:22 AM.
 
Old 04-14-2023, 08:39 PM   #6
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,854

Rep: Reputation: 161Reputation: 161
> What does "ioctl[SIOCSIWAP]: Operation not permitted" mean ?
You need to use root user to run the rc.inet1 script.
 
Old 04-18-2023, 07:06 AM   #7
Bbmr
LQ Newbie
 
Registered: Mar 2023
Distribution: Debian
Posts: 22

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by nini09 View Post
> What does "ioctl[SIOCSIWAP]: Operation not permitted" mean ?
You need to use root user to run the rc.inet1 script.
I've already done it.
 
Old 04-19-2023, 01:57 PM   #8
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,854

Rep: Reputation: 161Reputation: 161
What is iwconfig output?
 
Old 04-20-2023, 09:06 AM   #9
Bbmr
LQ Newbie
 
Registered: Mar 2023
Distribution: Debian
Posts: 22

Original Poster
Rep: Reputation: 0
lo no wireless extensions.

eth0 no wireless extensions.

wlan0 IEEE 802.11bgn ESSID:"Bbox-5756C323" Nickname:"<WIFI@REALTEK>"
Mode:Managed Frequency:2.437 GHz Access Point: 2C:79:D7:2A:3C:70
Bit Rate:144.4 Mb/s Sensitivity:0/0
Retry:off RTS thr:off Fragment thr:off
Encryption key: ****-****-****-****-****-****-****-**** Security mode
:open
Power Management:off
Link Quality=79/100 Signal level=100/100 Noise level=0/100
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
 
Old 04-20-2023, 08:19 PM   #10
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,854

Rep: Reputation: 161Reputation: 161
The iwconfig output is fine. Can you transfer anything between the wlan0 and AP?
 
Old 04-21-2023, 07:53 AM   #11
Bbmr
LQ Newbie
 
Registered: Mar 2023
Distribution: Debian
Posts: 22

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by nini09 View Post
The iwconfig output is fine. Can you transfer anything between the wlan0 and AP?
Nothing.
 
Old 04-21-2023, 08:09 PM   #12
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,854

Rep: Reputation: 161Reputation: 161
Where do you get the error message, ioctl[SIOCSIWAP]: Operation not permitted?
Is there any error message in dmesg after boot-up? I assume you have rebooted the machine after the configuration is done.
 
Old 04-22-2023, 04:26 AM   #13
Bbmr
LQ Newbie
 
Registered: Mar 2023
Distribution: Debian
Posts: 22

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by nini09 View Post
Where do you get the error message, ioctl[SIOCSIWAP]: Operation not permitted?
Is there any error message in dmesg after boot-up? I assume you have rebooted the machine after the configuration is done.
I actually got this error message while running wpa_supplicant with a file called "wpa_0_8.conf" given in the driver's directory, as its installation manual told. As a matter of fact, the first fatal error I got is with a specific line of this config file, as mentionned in my first message, and it is when I commented this line that the ioctl error appeared.
Next, dmesg doesn't seem to output any error message albeit there is a ton of entries and I do not know which one to look at in order to check if it is OK.
 
Old 04-26-2023, 08:16 PM   #14
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,854

Rep: Reputation: 161Reputation: 161
In https://wiki.alienbase.nl/doku.php?id=slackware:network. the wpa_supplicant.conf is like the following. Does line 51 of your wpa_supplicant.conf has the setting, 'config_methods=virtual_display virtual_push_button keypad'?

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
eapol_version=1
ap_scan=1
fast_reauth=1

network={
scan_ssid=0
ssid="your_essid"
proto=WPA RSN
key_mgmt=WPA-PSK WPA-EAP
pairwise=CCMP TKIP
group=CCMP TKIP
psk=your_64_hex_characters_long_key
}
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux driver for D-Link wireless N Nano usb adapter DWA-131E1 vikas_gupta Linux - Newbie 1 01-28-2017 09:39 AM
Supersede laptop's wireless adapter with usb wireless adapter rcdawson Linux - Networking 2 11-29-2015 04:03 AM
Linux driver for D-Link wireless N Nano usb adapter DWA-131 geordiejohn1950 Linux - Networking 24 01-09-2015 04:20 AM
Wireless USB adapter - D-Link DWA-160 Wireless N USB edagar Linux - Hardware 2 09-08-2011 08:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration