aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/ieee80211_ioctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/ieee80211_ioctl.c')
-rw-r--r--net/mac80211/ieee80211_ioctl.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/net/mac80211/ieee80211_ioctl.c b/net/mac80211/ieee80211_ioctl.c
index e7904db55325..8292431ac48f 100644
--- a/net/mac80211/ieee80211_ioctl.c
+++ b/net/mac80211/ieee80211_ioctl.c
@@ -1061,7 +1061,10 @@ static int ieee80211_ioctl_prism2_param(struct net_device *dev,
1061 break; 1061 break;
1062 1062
1063 case PRISM2_PARAM_PREAMBLE: 1063 case PRISM2_PARAM_PREAMBLE:
1064 local->short_preamble = value; 1064 if (sdata->type != IEEE80211_IF_TYPE_AP)
1065 ret = -ENOENT;
1066 else
1067 sdata->short_preamble = value;
1065 break; 1068 break;
1066 1069
1067 case PRISM2_PARAM_STAT_TIME: 1070 case PRISM2_PARAM_STAT_TIME:
@@ -1184,7 +1187,7 @@ static int ieee80211_ioctl_get_prism2_param(struct net_device *dev,
1184 break; 1187 break;
1185 1188
1186 case PRISM2_PARAM_PREAMBLE: 1189 case PRISM2_PARAM_PREAMBLE:
1187 *param = local->short_preamble; 1190 *param = sdata->short_preamble;
1188 break; 1191 break;
1189 1192
1190 case PRISM2_PARAM_STAT_TIME: 1193 case PRISM2_PARAM_STAT_TIME: