Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 278437
b: refs/heads/master
c: 84e1e73
h: refs/heads/master
i:
  278435: 9ca41d3
v: v3
  • Loading branch information
Nick Kossifidis authored and John W. Linville committed Nov 28, 2011
1 parent c237e41 commit 0bf99bd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dafae6af0336958e9e2eb67cc5e4e31d6d13b308
refs/heads/master: 84e1e7373b961713bde371b9391d91fe7150d7f2
11 changes: 9 additions & 2 deletions trunk/drivers/net/wireless/ath/ath5k/base.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ static int modparam_fastchanswitch;
module_param_named(fastchanswitch, modparam_fastchanswitch, bool, S_IRUGO);
MODULE_PARM_DESC(fastchanswitch, "Enable fast channel switching for AR2413/AR5413 radios.");

static int ath5k_modparam_no_hw_rfkill_switch;
module_param_named(no_hw_rfkill_switch, ath5k_modparam_no_hw_rfkill_switch,
bool, S_IRUGO);
MODULE_PARM_DESC(no_hw_rfkill_switch, "Ignore the GPIO RFKill switch state");


/* Module info */
MODULE_AUTHOR("Jiri Slaby");
Expand Down Expand Up @@ -2635,7 +2640,8 @@ int ath5k_start(struct ieee80211_hw *hw)
if (ret)
goto done;

ath5k_rfkill_hw_start(ah);
if (!ath5k_modparam_no_hw_rfkill_switch)
ath5k_rfkill_hw_start(ah);

/*
* Reset the key cache since some parts do not reset the
Expand Down Expand Up @@ -2719,7 +2725,8 @@ void ath5k_stop(struct ieee80211_hw *hw)

cancel_delayed_work_sync(&ah->tx_complete_work);

ath5k_rfkill_hw_stop(ah);
if (!ath5k_modparam_no_hw_rfkill_switch)
ath5k_rfkill_hw_stop(ah);
}

/*
Expand Down

0 comments on commit 0bf99bd

Please sign in to comment.