From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jonatan Schlag To: development@lists.ipfire.org Subject: [PATCH 1/4] udev: Do not use MACVTAP for any wireless devices Date: Thu, 29 Dec 2016 20:37:31 +0100 Message-ID: <1483040254-15683-1-git-send-email-jonatan.schlag@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8439415861706725760==" List-Id: --===============8439415861706725760== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Fixes #11179 Signed-off-by: Jonatan Schlag --- config/udev/network-hotplug-rename | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/config/udev/network-hotplug-rename b/config/udev/network-hotplug= -rename index aaae641..1f8d5e1 100644 --- a/config/udev/network-hotplug-rename +++ b/config/udev/network-hotplug-rename @@ -67,11 +67,21 @@ for zone in ${ZONES}; do =20 # If a matching interface has been found we will # print the name to which udev will rename it. - if [ "${!mode}" =3D "macvtap" ]; then - echo "${!device}phys" - else - echo "${!device}" - fi + case "${!mode}" in + macvtap) + # MACVTAP mode doesn't work for WiFi devices + if [ -d "/sys/class/net/${INTERFACE}/phy80211" ]; then + logger -t network "MACVTAP mode is not supported for wireless devices" + echo "${!device}" + else + echo "${!device}phys" + fi + ;; + + *) + echo "${!device}" + ;; + esac =20 exit 0 done --=20 2.7.4 --===============8439415861706725760==--