Skip to content
Snippets Groups Projects
Commit 4a033475 authored by Jo-Philipp Wich's avatar Jo-Philipp Wich
Browse files

mac80211: gracefully handle preexisting VIF


Gracefully handle cases where the to-be-created wireless interface already
exists on the system which might commonly happen with non-multi-SSID capable
wireless drivers.

This fixes commit 8301e613 which caused
previously ignored "Too many open files in system (-23)" errors to fail the
wireless setup procedure.

With the updated approach we'll still try recreating the vif after one
second if the first attempt to do so failed with ENFILE but we will now
consider the operation successfull if a second attempt still yields ENFILE
with the requested ifname already existing on the system.

Fixes FS#664, FS#704.

Suggested-by: default avatarVittorio Gambaletta <openwrt@vittgam.net>
Signed-off-by: default avatarJo-Philipp Wich <jo@mein.io>
parent 37e7a173
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment