diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2009-10-16 01:18:58 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-10-27 16:48:27 -0400 |
commit | 7fd6b12f329b7ec1c1e3ad49d701d2ac7ab42d9e (patch) | |
tree | 136a351338f339f89fdb74032e1f7785912f8437 /drivers/net/wireless | |
parent | 9829e1b510214956bc9d5e278be49d781e1a6fbf (diff) |
iwmc3200wifi: Support unexpected reboot barker
We can receive unexpected reboot barker at any time, and we're supposed to
reset the whole device then.
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/iwmc3200wifi/rx.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwmc3200wifi/rx.c b/drivers/net/wireless/iwmc3200wifi/rx.c index 5fa0a63ef0bf..bca3bb2d2dec 100644 --- a/drivers/net/wireless/iwmc3200wifi/rx.c +++ b/drivers/net/wireless/iwmc3200wifi/rx.c | |||
@@ -1321,6 +1321,14 @@ int iwm_rx_handle(struct iwm_priv *iwm, u8 *buf, unsigned long buf_size) | |||
1321 | 1321 | ||
1322 | switch (le32_to_cpu(hdr->cmd)) { | 1322 | switch (le32_to_cpu(hdr->cmd)) { |
1323 | case UMAC_REBOOT_BARKER: | 1323 | case UMAC_REBOOT_BARKER: |
1324 | if (test_bit(IWM_STATUS_READY, &iwm->status)) { | ||
1325 | IWM_ERR(iwm, "Unexpected BARKER\n"); | ||
1326 | |||
1327 | schedule_work(&iwm->reset_worker); | ||
1328 | |||
1329 | return 0; | ||
1330 | } | ||
1331 | |||
1324 | return iwm_notif_send(iwm, NULL, IWM_BARKER_REBOOT_NOTIFICATION, | 1332 | return iwm_notif_send(iwm, NULL, IWM_BARKER_REBOOT_NOTIFICATION, |
1325 | IWM_SRC_UDMA, buf, buf_size); | 1333 | IWM_SRC_UDMA, buf, buf_size); |
1326 | case UMAC_ACK_BARKER: | 1334 | case UMAC_ACK_BARKER: |