]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
wlanclient: Do not force using legacy interface to talk to the kernel
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 16 Feb 2021 16:44:45 +0000 (17:44 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 16 Feb 2021 16:44:45 +0000 (17:44 +0100)
"wireless extensions" is the old interface to speak to the kernel.

All newer drivers support nl80211 now.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/initscripts/system/wlanclient

index 4b3938b46678800e57ebd40c8c9d2f6d3a9f60ec..338a743ab72e4ad69efcb4780116d8d71e1807cc 100644 (file)
@@ -275,9 +275,7 @@ function wpa_supplicant_start() {
        # Build wpa_supplicant command line.
        local wpa_suppl_cmd="wpa_supplicant -B -qqq -i${device} -c${config}"
 
-       if device_is_wireless ${device}; then
-               wpa_suppl_cmd="${wpa_suppl_cmd} -Dwext"
-       else
+       if ! device_is_wireless ${device}; then
                wpa_suppl_cmd="${wpa_suppl_cmd} -Dwired"
        fi