Package: broadcom-sta / 6.30.223.271-10

04-user_ioctl.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From: Cyril Lacoux <clacoux@easter-eggs.com>
Date: Mon, 19 Nov 2012 12:02:30 +0000
Subject: Allow normal users to send ioctl requests
Origin: https://bugs.debian.org/672677

---
 amd64/src/wl/sys/wl_linux.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/amd64/src/wl/sys/wl_linux.c b/amd64/src/wl/sys/wl_linux.c
index 72bf429..d335d65 100644
--- a/amd64/src/wl/sys/wl_linux.c
+++ b/amd64/src/wl/sys/wl_linux.c
@@ -1661,11 +1661,7 @@ wl_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
 	}
 
 	WL_LOCK(wl);
-	if (!capable(CAP_NET_ADMIN)) {
-		bcmerror = BCME_EPERM;
-	} else {
-		bcmerror = wlc_ioctl(wl->wlc, ioc.cmd, buf, ioc.len, wlif->wlcif);
-	}
+	bcmerror = wlc_ioctl(wl->wlc, ioc.cmd, buf, ioc.len, wlif->wlcif);
 	WL_UNLOCK(wl);
 
 done1: