From: Jouni Malinen Date: Sat, 30 Jul 2005 19:50:06 +0000 (-0700) Subject: [PATCH] hostap update X-Git-Tag: v2.6.14-rc1~1017^2~27 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3b10e1636dec053f4874d593e3de5d46da48a5f;p=linux-2.6 [PATCH] hostap update Fixed beacon frame when moving from monitor mode to master mode (workaround for firmware bug that left IBSS IE in the Beacon frames). This is using the same workaround that was previously used when moving from adhoc mode to master mode. Signed-off-by: Jouni Malinen Signed-off-by: Jeff Garzik --- diff --git a/drivers/net/wireless/hostap/hostap_ioctl.c b/drivers/net/wireless/hostap/hostap_ioctl.c index 9783619869..bbed1e6345 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, if (local->iw_mode == IW_MODE_MONITOR) hostap_monitor_mode_disable(local); - if (local->iw_mode == IW_MODE_ADHOC && *mode == IW_MODE_MASTER) { + if ((local->iw_mode == IW_MODE_ADHOC || + local->iw_mode == IW_MODE_MONITOR) && *mode == IW_MODE_MASTER) { /* There seems to be a firmware bug in at least STA f/w v1.5.6 * that leaves beacon frames to use IBSS type when moving from * IBSS to Host AP mode. Doing double Port0 reset seems to be