Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 200277
b: refs/heads/master
c: 436c109
h: refs/heads/master
i:
  200275: 2c25921
v: v3
  • Loading branch information
Bruno Randolf authored and John W. Linville committed Jun 7, 2010
1 parent cb4e37c commit be58fe0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0f666a08901f8b01f294ca0ad751019375240ae3
refs/heads/master: 436c109adb54433fff689abd71c23a6505e46bb0
7 changes: 7 additions & 0 deletions trunk/drivers/net/wireless/ath/ath5k/phy.c
Original file line number Diff line number Diff line change
Expand Up @@ -1814,6 +1814,13 @@ ath5k_hw_set_antenna_mode(struct ath5k_hw *ah, u8 ant_mode)
u8 def_ant, tx_ant, ee_mode;
u32 sta_id1 = 0;

/* if channel is not initialized yet we can't set the antennas
* so just store the mode. it will be set on the next reset */
if (channel == NULL) {
ah->ah_ant_mode = ant_mode;
return;
}

def_ant = ah->ah_def_ant;

ATH5K_TRACE(ah->ah_sc);
Expand Down

0 comments on commit be58fe0

Please sign in to comment.