Skip to content
Snippets Groups Projects
Commit b63bde7b authored by Johannes Berg's avatar Johannes Berg Committed by David S. Miller
Browse files

[MAC80211]: fix preamble setting


It looks like in commit 28487a90 the condition was unintentionally
negated by moving some code, fix it.

Signed-off-by: default avatarJohannes Berg <johannes@sipsolutions.net>
Cc: Daniel Drake <dsd@gentoo.org>
Acked-by: default avatarMichael Wu <flamingice@sourmilk.net>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6c55aa97
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment