Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 306734
b: refs/heads/master
c: 03e2084
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Pedersen authored and Kalle Valo committed Apr 25, 2012
1 parent 3baf1bd commit 1456f71
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 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: 1560ac7d304fdbe603e2fe9cf9564dc81dcccc98
refs/heads/master: 03e2084a843a700089a479e0ffdf5876c7059411
15 changes: 10 additions & 5 deletions trunk/drivers/net/wireless/ath/ath6kl/wmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1818,12 +1818,14 @@ int ath6kl_wmi_beginscan_cmd(struct wmi *wmi, u8 if_idx,
u32 home_dwell_time, u32 force_scan_interval,
s8 num_chan, u16 *ch_list, u32 no_cck, u32 *rates)
{
struct ieee80211_supported_band *sband;
struct sk_buff *skb;
struct wmi_begin_scan_cmd *sc;
s8 size;
s8 size, *supp_rates;
int i, band, ret;
struct ath6kl *ar = wmi->parent_dev;
int num_rates;
u32 ratemask;

size = sizeof(struct wmi_begin_scan_cmd);

Expand All @@ -1850,10 +1852,13 @@ int ath6kl_wmi_beginscan_cmd(struct wmi *wmi, u8 if_idx,
sc->num_ch = num_chan;

for (band = 0; band < IEEE80211_NUM_BANDS; band++) {
struct ieee80211_supported_band *sband =
ar->wiphy->bands[band];
u32 ratemask = rates[band];
u8 *supp_rates = sc->supp_rates[band].rates;
sband = ar->wiphy->bands[band];

if (!sband)
continue;

ratemask = rates[band];
supp_rates = sc->supp_rates[band].rates;
num_rates = 0;

for (i = 0; i < sband->n_bitrates; i++) {
Expand Down

0 comments on commit 1456f71

Please sign in to comment.