Skip to content

Commit 4cf92a3

Browse files
Jean Tourrilheslinvjw
authored andcommitted
[PATCH] softmac: Fix ESSID problem
Victor Porton reported that the SoftMAC layer had random problem when setting the ESSID : http://bugzilla.kernel.org/show_bug.cgi?id=8686 After investigation, it turned out to be worse, the SoftMAC layer is left in an inconsistent state. The fix is pretty trivial. Signed-off-by: Jean Tourrilhes <[email protected]> Acked-by: Michael Buesch <[email protected]> Acked-by: Larry Finger <[email protected]> Signed-off-by: John W. Linville <[email protected]>
1 parent 426921b commit 4cf92a3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

net/ieee80211/softmac/ieee80211softmac_assoc.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,8 +271,11 @@ ieee80211softmac_assoc_work(struct work_struct *work)
271271
*/
272272
dprintk(KERN_INFO PFX "Associate: Scanning for networks first.\n");
273273
ieee80211softmac_notify(mac->dev, IEEE80211SOFTMAC_EVENT_SCAN_FINISHED, ieee80211softmac_assoc_notify_scan, NULL);
274-
if (ieee80211softmac_start_scan(mac))
274+
if (ieee80211softmac_start_scan(mac)) {
275275
dprintk(KERN_INFO PFX "Associate: failed to initiate scan. Is device up?\n");
276+
mac->associnfo.associating = 0;
277+
mac->associnfo.associated = 0;
278+
}
276279
goto out;
277280
} else {
278281
mac->associnfo.associating = 0;

0 commit comments

Comments
 (0)