fix up hostapd for mac80211
[openwrt/openwrt.git] / package / mac80211 / patches / 016-prism2-ioctl-eapol.patch
1 ---
2 net/mac80211/ieee80211_ioctl.c | 6 ++++++
3 1 file changed, 6 insertions(+)
4
5 --- everything.orig/net/mac80211/ieee80211_ioctl.c 2007-11-07 13:19:33.681513453 +0100
6 +++ everything/net/mac80211/ieee80211_ioctl.c 2007-11-07 13:19:35.171517576 +0100
7 @@ -984,6 +984,9 @@ static int ieee80211_ioctl_prism2_param(
8 local = sdata->local;
9
10 switch (param) {
11 + case PRISM2_PARAM_EAPOL:
12 + sdata->eapol = value;
13 + break;
14 case PRISM2_PARAM_IEEE_802_1X:
15 sdata->ieee802_1x = value;
16 break;
17 @@ -1022,6 +1025,9 @@ static int ieee80211_ioctl_get_prism2_pa
18 local = sdata->local;
19
20 switch (*param) {
21 + case PRISM2_PARAM_EAPOL:
22 + *param = sdata->eapol;
23 + break;
24 case PRISM2_PARAM_IEEE_802_1X:
25 *param = sdata->ieee802_1x;
26 break;