Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 145018
b: refs/heads/master
c: 621ad7c
h: refs/heads/master
v: v3
  • Loading branch information
John W. Linville committed May 11, 2009
1 parent e408ed2 commit ffcf142
Show file tree
Hide file tree
Showing 3 changed files with 3 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: aedec9226809ae9d1972f8f8079fc70206ee7a88
refs/heads/master: 621ad7c96aa138cfeab53cd4debc5a4e08b2189b
2 changes: 1 addition & 1 deletion trunk/net/mac80211/rc80211_minstrel.c
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ minstrel_alloc_sta(void *priv, struct ieee80211_sta *sta, gfp_t gfp)

for (i = 0; i < IEEE80211_NUM_BANDS; i++) {
sband = hw->wiphy->bands[i];
if (sband->n_bitrates > max_rates)
if (sband && sband->n_bitrates > max_rates)
max_rates = sband->n_bitrates;
}

Expand Down
2 changes: 1 addition & 1 deletion trunk/net/mac80211/rc80211_pid_algo.c
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ static void *rate_control_pid_alloc(struct ieee80211_hw *hw,

for (i = 0; i < IEEE80211_NUM_BANDS; i++) {
sband = hw->wiphy->bands[i];
if (sband->n_bitrates > max_rates)
if (sband && sband->n_bitrates > max_rates)
max_rates = sband->n_bitrates;
}

Expand Down

0 comments on commit ffcf142

Please sign in to comment.