summaryrefslogtreecommitdiff
path: root/package/mac80211/patches/013-prism2-ioctl-bridge-packets.patch
blob: d418ad34974b94c1001273fd7081b9b37e3bb591 (plain)
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
---
 net/mac80211/ieee80211_ioctl.c |    6 ++++++
 1 file changed, 6 insertions(+)

--- everything.orig/net/mac80211/ieee80211_ioctl.c	2007-11-07 13:19:27.981515569 +0100
+++ everything/net/mac80211/ieee80211_ioctl.c	2007-11-07 13:19:30.781513182 +0100
@@ -882,6 +882,9 @@ static int ieee80211_ioctl_prism2_param(
 	local = sdata->local;
 
 	switch (param) {
+	case PRISM2_PARAM_AP_BRIDGE_PACKETS:
+		local->bridge_packets = value;
+		break;
 	case PRISM2_PARAM_MGMT_IF:
 		if (value == 1) {
 			if (!local->apdev)
@@ -914,6 +917,9 @@ static int ieee80211_ioctl_get_prism2_pa
 	local = sdata->local;
 
 	switch (*param) {
+	case PRISM2_PARAM_AP_BRIDGE_PACKETS:
+		*param = local->bridge_packets;
+		break;
 	case PRISM2_PARAM_MGMT_IF:
 		if (local->apdev)
 			*param = local->apdev->ifindex;