Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 315322
b: refs/heads/master
c: 091185d
h: refs/heads/master
v: v3
  • Loading branch information
Arik Nemtsov authored and John W. Linville committed Jul 10, 2012
1 parent 9a2f0e2 commit ec8bb48
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 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: 4455556d71951cfb6010e267efd00a52b63c2c20
refs/heads/master: 091185d6bc77d8177fe894b35d64d3ad081c7c30
2 changes: 1 addition & 1 deletion trunk/drivers/net/wireless/ti/wlcore/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -4569,7 +4569,7 @@ static int wl12xx_set_bitrate_mask(struct ieee80211_hw *hw,

mutex_lock(&wl->mutex);

for (i = 0; i < IEEE80211_NUM_BANDS; i++)
for (i = 0; i < WLCORE_NUM_BANDS; i++)
wlvif->bitrate_masks[i] =
wl1271_tx_enabled_rates_get(wl,
mask->control[i].legacy,
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/net/wireless/ti/wlcore/wlcore.h
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ struct wl1271 {
s8 noise;

/* bands supported by this instance of wl12xx */
struct ieee80211_supported_band bands[IEEE80211_NUM_BANDS];
struct ieee80211_supported_band bands[WLCORE_NUM_BANDS];

/*
* wowlan trigger was configured during suspend.
Expand Down Expand Up @@ -371,7 +371,7 @@ struct wl1271 {
u8 hw_min_ht_rate;

/* HW HT (11n) capabilities */
struct ieee80211_sta_ht_cap ht_cap[IEEE80211_NUM_BANDS];
struct ieee80211_sta_ht_cap ht_cap[WLCORE_NUM_BANDS];

/* size of the private FW status data */
size_t fw_status_priv_len;
Expand Down
5 changes: 4 additions & 1 deletion trunk/drivers/net/wireless/ti/wlcore/wlcore_i.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@
#define WL12XX_INVALID_ROLE_ID 0xff
#define WL12XX_INVALID_LINK_ID 0xff

/* the driver supports the 2.4Ghz and 5Ghz bands */
#define WLCORE_NUM_BANDS 2

#define WL12XX_MAX_RATE_POLICIES 16

/* Defined by FW as 0. Will not be freed or allocated. */
Expand Down Expand Up @@ -360,7 +363,7 @@ struct wl12xx_vif {
int channel;
enum nl80211_channel_type channel_type;

u32 bitrate_masks[IEEE80211_NUM_BANDS];
u32 bitrate_masks[WLCORE_NUM_BANDS];
u32 basic_rate_set;

/*
Expand Down

0 comments on commit ec8bb48

Please sign in to comment.