LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 11-17-2020, 08:13 AM   #1
chetuneve
LQ Newbie
 
Registered: Jun 2019
Posts: 4

Rep: Reputation: Disabled
Question How to configure wpa_supplicant configuration to handle multiple USB WIiFi devices with single wpa_supplicant configuration file with system


I'm using systemd-networkd for network configurations, which has made networking setup a lot easier for wired and wifi interfaces. But not in case of wpa_supplicant configurations. I would like to make it just as easy for WiFi interfaces configurations with wpa_supplicant configuration, but it seems there's some kind of wildcard support missing for wpa_supplicant.

Here's my /etc/systemd/network/wifi.network:

[Match]
Name=wl*

[Network]
DHCP=yes

In addition, I'm running:
systemctl enable wpa_supplicant@wlp0s20f3
systemctl start wpa_supplicant@wlp0s20f3

because that's the interface that my current WiFi USB adapter comes up on. This goes with /etc/wpa_supplicant/wpa_supplicant-wlp0s20f3.conf:
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
update_config=1
eapol_version=1
ap_scan=1
fast_reauth=1
network={
ssid="NETWORK_NAME"
psk=621cc1aea8fc104d2988843a3af634014bdabcc30dd4a3a62f2809dccdbd6ea7
key_mgmt=WPA-PSK
priority=1
}

This all works fine, except that:
In case If I changed my USB WiFi Adapter then the interface name of newly attached USB WiFi device may be different and wpa_supplicant isn't running there with the desired interface name like following:
wpa_supplicant@<interface_name>


systemd-networkd solved that problem nicely with the wildcard in the interface name above (Name=wl*)
But I am looking something similar kind of trick for all of the wireless interfaces to be configured with single wpa_supplicant configuration file.

My question is can I do something similar with wpa_supplicant, so I don't have to run a separate wpa_supplicant daemon on all possible interface names?

Thank you so much in advance for your help.
 
Old 11-18-2020, 04:07 PM   #2
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,818
Blog Entries: 7

Rep: Reputation: 2189Reputation: 2189Reputation: 2189Reputation: 2189Reputation: 2189Reputation: 2189Reputation: 2189Reputation: 2189Reputation: 2189Reputation: 2189Reputation: 2189
General info for that.
https://wiki.archlinux.org/index.php/Wpa_supplicant
https://wiki.archlinux.org/index.php/Systemd-networkd
 
  


Reply

Tags
debian 10 buster, network settings, wirelessnetworking, wpasupplicant, wpa_supplicant



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
system configuration required for NS2 on linux to handle large simulations rc49 Linux - Newbie 1 08-31-2015 01:08 PM
[SOLVED] Starting File System .. Starting File System .. Starting File System .. Starting File rmknox Linux - Newbie 3 08-15-2010 11:30 PM
Single USB driver, multiple devices, how many driver instances? jadonovan Linux - Embedded & Single-board computer 1 01-23-2010 08:08 PM
alternative way to get USB file handle: hotplug? sys/bus/usb/devices/ ? knockout_artist Linux - Kernel 0 12-02-2008 04:08 PM
A solution for design a single process's to handle asynchronous I/O socket. Alexlun Programming 4 04-11-2008 08:49 AM

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

All times are GMT -5. The time now is 06:35 PM.

Contact Us - Advertising Info - Rules - Privacy - Donations - Contributing Member - LQ Sitemap - "Weather apps tell you it'll rain. Wyndo tells you when to go."
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