main.c (9d066a252786e1a18484a6283f82614d42a9f4ac) | main.c (7947d3e075cde1a18e538f2dafbc850aa356ff79) |
---|---|
1/* 2 * This file is part of wl1251 3 * 4 * Copyright (C) 2008-2009 Nokia Corporation 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License 8 * version 2 as published by the Free Software Foundation. --- 434 unchanged lines hidden (view full) --- 443 444 wl1251_debug(DEBUG_MAC80211, "mac80211 stop"); 445 446 mutex_lock(&wl->mutex); 447 448 WARN_ON(wl->state != WL1251_STATE_ON); 449 450 if (wl->scanning) { | 1/* 2 * This file is part of wl1251 3 * 4 * Copyright (C) 2008-2009 Nokia Corporation 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License 8 * version 2 as published by the Free Software Foundation. --- 434 unchanged lines hidden (view full) --- 443 444 wl1251_debug(DEBUG_MAC80211, "mac80211 stop"); 445 446 mutex_lock(&wl->mutex); 447 448 WARN_ON(wl->state != WL1251_STATE_ON); 449 450 if (wl->scanning) { |
451 ieee80211_scan_completed(wl->hw, true); | 451 struct cfg80211_scan_info info = { 452 .aborted = true, 453 }; 454 455 ieee80211_scan_completed(wl->hw, &info); |
452 wl->scanning = false; 453 } 454 455 wl->state = WL1251_STATE_OFF; 456 457 wl1251_disable_interrupts(wl); 458 459 mutex_unlock(&wl->mutex); --- 1152 unchanged lines hidden --- | 456 wl->scanning = false; 457 } 458 459 wl->state = WL1251_STATE_OFF; 460 461 wl1251_disable_interrupts(wl); 462 463 mutex_unlock(&wl->mutex); --- 1152 unchanged lines hidden --- |