Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2420ebc1 authored by Mohamed Abbas's avatar Mohamed Abbas Committed by John W. Linville
Browse files

iwl3945: clear scanning bits upon failure



This patch ensures we clear any scan status bit when
an error occurs while sending the scan command. It is
the implementation of patch:
"iwlwifi: clear scanning bits upon failure"
for iwl3945.

Signed-off-by: default avatarMohamed Abbas <mohamed.abbas@intel.com>
Signed-off-by: default avatarReinette Chatre <reinette.chatre@intel.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent c7930339
Loading
Loading
Loading
Loading
+8 −0
Original line number Original line Diff line number Diff line
@@ -6273,6 +6273,14 @@ static void iwl3945_bg_request_scan(struct work_struct *data)
	return;
	return;


 done:
 done:
	/* can not perform scan make sure we clear scanning
	 * bits from status so next scan request can be performed.
	 * if we dont clear scanning status bit here all next scan
	 * will fail
	*/
	clear_bit(STATUS_SCAN_HW, &priv->status);
	clear_bit(STATUS_SCANNING, &priv->status);

	/* inform mac80211 scan aborted */
	/* inform mac80211 scan aborted */
	queue_work(priv->workqueue, &priv->scan_completed);
	queue_work(priv->workqueue, &priv->scan_completed);
	mutex_unlock(&priv->mutex);
	mutex_unlock(&priv->mutex);