diff options
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/hostap/hostap_ioctl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/hostap/hostap_ioctl.c b/drivers/net/wireless/hostap/hostap_ioctl.c index 97836198691a..bbed1e634583 100644 --- a/drivers/net/wireless/hostap/hostap_ioctl.c +++ b/drivers/net/wireless/hostap/hostap_ioctl.c | |||
@@ -1182,7 +1182,8 @@ static int prism2_ioctl_siwmode(struct net_device *dev, | |||
1182 | if (local->iw_mode == IW_MODE_MONITOR) | 1182 | if (local->iw_mode == IW_MODE_MONITOR) |
1183 | hostap_monitor_mode_disable(local); | 1183 | hostap_monitor_mode_disable(local); |
1184 | 1184 | ||
1185 | if (local->iw_mode == IW_MODE_ADHOC && *mode == IW_MODE_MASTER) { | 1185 | if ((local->iw_mode == IW_MODE_ADHOC || |
1186 | local->iw_mode == IW_MODE_MONITOR) && *mode == IW_MODE_MASTER) { | ||
1186 | /* There seems to be a firmware bug in at least STA f/w v1.5.6 | 1187 | /* There seems to be a firmware bug in at least STA f/w v1.5.6 |
1187 | * that leaves beacon frames to use IBSS type when moving from | 1188 | * that leaves beacon frames to use IBSS type when moving from |
1188 | * IBSS to Host AP mode. Doing double Port0 reset seems to be | 1189 | * IBSS to Host AP mode. Doing double Port0 reset seems to be |