aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/ipw2x00/ipw2200.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/net/wireless/ipw2x00/ipw2200.c b/drivers/net/wireless/ipw2x00/ipw2200.c
index 2dfe78acda97..5b01b5b2e159 100644
--- a/drivers/net/wireless/ipw2x00/ipw2200.c
+++ b/drivers/net/wireless/ipw2x00/ipw2200.c
@@ -1757,10 +1757,13 @@ static DEVICE_ATTR(direct_dword, S_IWUSR | S_IRUGO,
1757 1757
1758static int rf_kill_active(struct ipw_priv *priv) 1758static int rf_kill_active(struct ipw_priv *priv)
1759{ 1759{
1760 if (0 == (ipw_read32(priv, 0x30) & 0x10000)) 1760 if (0 == (ipw_read32(priv, 0x30) & 0x10000)) {
1761 priv->status |= STATUS_RF_KILL_HW; 1761 priv->status |= STATUS_RF_KILL_HW;
1762 else 1762 wiphy_rfkill_set_hw_state(priv->ieee->wdev.wiphy, true);
1763 } else {
1763 priv->status &= ~STATUS_RF_KILL_HW; 1764 priv->status &= ~STATUS_RF_KILL_HW;
1765 wiphy_rfkill_set_hw_state(priv->ieee->wdev.wiphy, false);
1766 }
1764 1767
1765 return (priv->status & STATUS_RF_KILL_HW) ? 1 : 0; 1768 return (priv->status & STATUS_RF_KILL_HW) ? 1 : 0;
1766} 1769}
@@ -2043,6 +2046,7 @@ static void ipw_irq_tasklet(struct ipw_priv *priv)
2043 if (inta & IPW_INTA_BIT_RF_KILL_DONE) { 2046 if (inta & IPW_INTA_BIT_RF_KILL_DONE) {
2044 IPW_DEBUG_RF_KILL("RF_KILL_DONE\n"); 2047 IPW_DEBUG_RF_KILL("RF_KILL_DONE\n");
2045 priv->status |= STATUS_RF_KILL_HW; 2048 priv->status |= STATUS_RF_KILL_HW;
2049 wiphy_rfkill_set_hw_state(priv->ieee->wdev.wiphy, true);
2046 wake_up_interruptible(&priv->wait_command_queue); 2050 wake_up_interruptible(&priv->wait_command_queue);
2047 priv->status &= ~(STATUS_ASSOCIATED | STATUS_ASSOCIATING); 2051 priv->status &= ~(STATUS_ASSOCIATED | STATUS_ASSOCIATING);
2048 cancel_delayed_work(&priv->request_scan); 2052 cancel_delayed_work(&priv->request_scan);