summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2007-08-28 23:01:55 +0200
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-11 01:48:55 +0200
commitb63bde7bb75f74acf974f43dc2be8798be115007 (patch)
tree37e855401ec152bba8a2300b5f20de45aaa2d5ee /net
parent[MAC80211]: Remove overly sticky averaging filters for rssi, signal, noise (diff)
downloadlinux-b63bde7bb75f74acf974f43dc2be8798be115007.tar.xz
linux-b63bde7bb75f74acf974f43dc2be8798be115007.zip
[MAC80211]: fix preamble setting
It looks like in commit 28487a90 the condition was unintentionally negated by moving some code, fix it. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Cc: Daniel Drake <dsd@gentoo.org> Acked-by: Michael Wu <flamingice@sourmilk.net> Signed-off-by: John W. Linville <linville@tuxdriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/mac80211/ieee80211_ioctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/ieee80211_ioctl.c b/net/mac80211/ieee80211_ioctl.c
index 8296e7de12c7..d48f3aa30e30 100644
--- a/net/mac80211/ieee80211_ioctl.c
+++ b/net/mac80211/ieee80211_ioctl.c
@@ -821,7 +821,7 @@ static int ieee80211_ioctl_prism2_param(struct net_device *dev,
break;
case PRISM2_PARAM_PREAMBLE:
- if (sdata->type != IEEE80211_IF_TYPE_AP) {
+ if (sdata->type == IEEE80211_IF_TYPE_AP) {
if (value)
sdata->flags |= IEEE80211_SDATA_SHORT_PREAMBLE;
else