Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 161353 Details for
Bug 232949
kernel 2.6.26-gentoo iwl4965 not working in normal boot sequence
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
linux-2.6.26-rc7-sw-rfkill.patch
linux-2.6.26-rc7-sw-rfkill.patch (text/plain), 1.49 KB, created by
Michał Kudła
on 2008-07-25 17:48:51 UTC
(
hide
)
Description:
linux-2.6.26-rc7-sw-rfkill.patch
Filename:
MIME Type:
Creator:
Michał Kudła
Created:
2008-07-25 17:48:51 UTC
Size:
1.49 KB
patch
obsolete
>diff --git a/drivers/net/wireless/iwlwifi/iwl4965-base.c b/drivers/net/wireless/iwlwifi/iwl4965-base.c >index 883b42f..39cab88 100644 >--- a/drivers/net/wireless/iwlwifi/iwl4965-base.c >+++ b/drivers/net/wireless/iwlwifi/iwl4965-base.c >@@ -2444,7 +2444,8 @@ void iwl4965_radio_kill_sw(struct iwl_priv *priv, int disable_radio) > spin_lock_irqsave(&priv->lock, flags); > iwl_write32(priv, CSR_UCODE_DRV_GP1_CLR, CSR_UCODE_SW_BIT_RFKILL); > >- clear_bit(STATUS_RF_KILL_SW, &priv->status); >+ if (!priv->is_open) >+ clear_bit(STATUS_RF_KILL_SW, &priv->status); > spin_unlock_irqrestore(&priv->lock, flags); > > /* wake up ucode */ >@@ -2462,7 +2463,6 @@ void iwl4965_radio_kill_sw(struct iwl_priv *priv, int disable_radio) > return; > } > >- queue_work(priv->workqueue, &priv->restart); > return; > } > >@@ -5534,13 +5534,15 @@ static int __iwl4965_up(struct iwl_priv *priv) > if (iwl_read32(priv, CSR_GP_CNTRL) & > CSR_GP_CNTRL_REG_FLAG_HW_RF_KILL_SW) > clear_bit(STATUS_RF_KILL_HW, &priv->status); >- else { >+ else > set_bit(STATUS_RF_KILL_HW, &priv->status); >- if (!test_bit(STATUS_IN_SUSPEND, &priv->status)) { >- iwl_rfkill_set_hw_state(priv); >- IWL_WARNING("Radio disabled by HW RF Kill switch\n"); >- return -ENODEV; >- } >+ >+ if (!test_bit(STATUS_IN_SUSPEND, &priv->status) && >+ iwl_is_rfkill(priv)) { >+ iwl_rfkill_set_hw_state(priv); >+ IWL_WARNING("Radio disabled by %s RF Kill switch\n", >+ test_bit(STATUS_RF_KILL_HW, &priv->status) ? "HW" : "SW"); >+ return -ENODEV; > } > > iwl_rfkill_set_hw_state(priv);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 232949
: 161353 |
161355
|
161460