aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/wext.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/wext.c')
-rw-r--r--net/mac80211/wext.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/mac80211/wext.c b/net/mac80211/wext.c
index 2dd387495dfe..70a29b657b61 100644
--- a/net/mac80211/wext.c
+++ b/net/mac80211/wext.c
@@ -976,6 +976,10 @@ static int ieee80211_ioctl_siwauth(struct net_device *dev,
976 ret = -EOPNOTSUPP; 976 ret = -EOPNOTSUPP;
977 break; 977 break;
978 case IW_AUTH_MFP: 978 case IW_AUTH_MFP:
979 if (!(sdata->local->hw.flags & IEEE80211_HW_MFP_CAPABLE)) {
980 ret = -EOPNOTSUPP;
981 break;
982 }
979 if (sdata->vif.type == NL80211_IFTYPE_STATION || 983 if (sdata->vif.type == NL80211_IFTYPE_STATION ||
980 sdata->vif.type == NL80211_IFTYPE_ADHOC) 984 sdata->vif.type == NL80211_IFTYPE_ADHOC)
981 sdata->u.sta.mfp = data->value; 985 sdata->u.sta.mfp = data->value;