[Bug 780] Fix iwpriv sw_reset doesn't reset essid. Signed-off-by: Zhu Yi -- diff -urp ipw2200-1.0.6/ipw2200.c ipw2200-1.0.6-sw_reset-fix/ipw2200.c --- ipw2200-1.0.6/ipw2200.c 2005-07-14 03:00:28.000000000 +0800 +++ ipw2200-1.0.6-sw_reset-fix/ipw2200.c 2005-09-12 10:40:57.000000000 +0800 @@ -8007,6 +8007,10 @@ static int ipw_sw_reset(struct ipw_priv else IPW_DEBUG_INFO("Auto adhoc creation disabled.\n"); + priv->config &= ~CFG_STATIC_ESSID; + priv->essid_len = 0; + memset(priv->essid, 0, IW_ESSID_MAX_SIZE); + if (disable) { priv->status |= STATUS_RF_KILL_SW; IPW_DEBUG_INFO("Radio disabled.\n");