diff options
Diffstat (limited to 'net/mac80211/ieee80211_ioctl.c')
-rw-r--r-- | net/mac80211/ieee80211_ioctl.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/net/mac80211/ieee80211_ioctl.c b/net/mac80211/ieee80211_ioctl.c index b89fb1f2f241..946aeb51a12b 100644 --- a/net/mac80211/ieee80211_ioctl.c +++ b/net/mac80211/ieee80211_ioctl.c | |||
@@ -1075,15 +1075,6 @@ static int ieee80211_ioctl_prism2_param(struct net_device *dev, | |||
1075 | } | 1075 | } |
1076 | break; | 1076 | break; |
1077 | 1077 | ||
1078 | case PRISM2_PARAM_STAT_TIME: | ||
1079 | if (!local->stat_time && value) { | ||
1080 | local->stat_timer.expires = jiffies + HZ * value / 100; | ||
1081 | add_timer(&local->stat_timer); | ||
1082 | } else if (local->stat_time && !value) { | ||
1083 | del_timer_sync(&local->stat_timer); | ||
1084 | } | ||
1085 | local->stat_time = value; | ||
1086 | break; | ||
1087 | case PRISM2_PARAM_SHORT_SLOT_TIME: | 1078 | case PRISM2_PARAM_SHORT_SLOT_TIME: |
1088 | if (value) | 1079 | if (value) |
1089 | local->hw.conf.flags |= IEEE80211_CONF_SHORT_SLOT_TIME; | 1080 | local->hw.conf.flags |= IEEE80211_CONF_SHORT_SLOT_TIME; |
@@ -1097,12 +1088,6 @@ static int ieee80211_ioctl_prism2_param(struct net_device *dev, | |||
1097 | local->next_mode = value; | 1088 | local->next_mode = value; |
1098 | break; | 1089 | break; |
1099 | 1090 | ||
1100 | case PRISM2_PARAM_ANTENNA_MODE: | ||
1101 | local->hw.conf.antenna_mode = value; | ||
1102 | if (ieee80211_hw_config(local)) | ||
1103 | ret = -EINVAL; | ||
1104 | break; | ||
1105 | |||
1106 | case PRISM2_PARAM_STA_ANTENNA_SEL: | 1091 | case PRISM2_PARAM_STA_ANTENNA_SEL: |
1107 | local->sta_antenna_sel = value; | 1092 | local->sta_antenna_sel = value; |
1108 | break; | 1093 | break; |
@@ -1194,9 +1179,6 @@ static int ieee80211_ioctl_get_prism2_param(struct net_device *dev, | |||
1194 | *param = sdata->short_preamble; | 1179 | *param = sdata->short_preamble; |
1195 | break; | 1180 | break; |
1196 | 1181 | ||
1197 | case PRISM2_PARAM_STAT_TIME: | ||
1198 | *param = local->stat_time; | ||
1199 | break; | ||
1200 | case PRISM2_PARAM_SHORT_SLOT_TIME: | 1182 | case PRISM2_PARAM_SHORT_SLOT_TIME: |
1201 | *param = !!(local->hw.conf.flags & IEEE80211_CONF_SHORT_SLOT_TIME); | 1183 | *param = !!(local->hw.conf.flags & IEEE80211_CONF_SHORT_SLOT_TIME); |
1202 | break; | 1184 | break; |
@@ -1205,10 +1187,6 @@ static int ieee80211_ioctl_get_prism2_param(struct net_device *dev, | |||
1205 | *param = local->next_mode; | 1187 | *param = local->next_mode; |
1206 | break; | 1188 | break; |
1207 | 1189 | ||
1208 | case PRISM2_PARAM_ANTENNA_MODE: | ||
1209 | *param = local->hw.conf.antenna_mode; | ||
1210 | break; | ||
1211 | |||
1212 | case PRISM2_PARAM_STA_ANTENNA_SEL: | 1190 | case PRISM2_PARAM_STA_ANTENNA_SEL: |
1213 | *param = local->sta_antenna_sel; | 1191 | *param = local->sta_antenna_sel; |
1214 | break; | 1192 | break; |