aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/ieee80211_ioctl.c
diff options
context:
space:
mode:
authorDaniel Drake <dsd@gentoo.org>2007-07-27 09:43:24 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:47:39 -0400
commitd9430a32886f70c0c16d67c525f6cda2df7906ee (patch)
tree9d531b23206e62033a6bb9d03ac572ce6ab4c7f1 /net/mac80211/ieee80211_ioctl.c
parent7e9ed18874f0df84b6651f0636e1cfdac43bc610 (diff)
[MAC80211]: implement ERP info change notifications
zd1211rw and bcm43xx are interested in being notified when ERP IE conditions change, so that they can reprogram a register which affects how control frames are transmitted. This patch adds an interface similar to the one that can be found in softmac. Signed-off-by: Daniel Drake <dsd@gentoo.org> Signed-off-by: Jiri Benc <jbenc@suse.cz> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/ieee80211_ioctl.c')
-rw-r--r--net/mac80211/ieee80211_ioctl.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/net/mac80211/ieee80211_ioctl.c b/net/mac80211/ieee80211_ioctl.c
index 8292431ac48f..1fde214faecb 100644
--- a/net/mac80211/ieee80211_ioctl.c
+++ b/net/mac80211/ieee80211_ioctl.c
@@ -1054,17 +1054,21 @@ static int ieee80211_ioctl_prism2_param(struct net_device *dev,
1054 break; 1054 break;
1055 1055
1056 case PRISM2_PARAM_CTS_PROTECT_ERP_FRAMES: 1056 case PRISM2_PARAM_CTS_PROTECT_ERP_FRAMES:
1057 if (sdata->type != IEEE80211_IF_TYPE_AP) 1057 if (sdata->type == IEEE80211_IF_TYPE_AP) {
1058 sdata->use_protection = !!value;
1059 ieee80211_erp_info_change_notify(dev, IEEE80211_ERP_CHANGE_PROTECTION);
1060 } else {
1058 ret = -ENOENT; 1061 ret = -ENOENT;
1059 else 1062 }
1060 sdata->use_protection = value;
1061 break; 1063 break;
1062 1064
1063 case PRISM2_PARAM_PREAMBLE: 1065 case PRISM2_PARAM_PREAMBLE:
1064 if (sdata->type != IEEE80211_IF_TYPE_AP) 1066 if (sdata->type != IEEE80211_IF_TYPE_AP) {
1067 sdata->short_preamble = !!value;
1068 ieee80211_erp_info_change_notify(dev, IEEE80211_ERP_CHANGE_PREAMBLE);
1069 } else {
1065 ret = -ENOENT; 1070 ret = -ENOENT;
1066 else 1071 }
1067 sdata->short_preamble = value;
1068 break; 1072 break;
1069 1073
1070 case PRISM2_PARAM_STAT_TIME: 1074 case PRISM2_PARAM_STAT_TIME: