Skip to content

Commit

Permalink
wlcore: add num tx desc parameter to alloc_hw
Browse files Browse the repository at this point in the history
Add number of Tx descriptors as new paramter to wlcore_alloc_hw function.

Signed-off-by: Igal Chernobelsky <igalc@ti.com>
  • Loading branch information
igalc authored and elp committed May 12, 2013
1 parent 0fa2965 commit e338ff1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion drivers/net/wireless/ti/wl12xx/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1789,7 +1789,8 @@ static int wl12xx_probe(struct platform_device *pdev)

hw = wlcore_alloc_hw(sizeof(struct wl12xx_priv),
WL12XX_AGGR_BUFFER_SIZE,
sizeof(struct wl12xx_event_mailbox));
sizeof(struct wl12xx_event_mailbox),
WL12XX_NUM_TX_DESCRIPTORS);
if (IS_ERR(hw)) {
wl1271_error("can't allocate hw");
ret = PTR_ERR(hw);
Expand Down
3 changes: 2 additions & 1 deletion drivers/net/wireless/ti/wl18xx/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1832,7 +1832,8 @@ static int wl18xx_probe(struct platform_device *pdev)

hw = wlcore_alloc_hw(sizeof(struct wl18xx_priv),
WL18XX_AGGR_BUFFER_SIZE,
sizeof(struct wl18xx_event_mailbox));
sizeof(struct wl18xx_event_mailbox),
WL18XX_NUM_TX_DESCRIPTORS);
if (IS_ERR(hw)) {
wl1271_error("can't allocate hw");
ret = PTR_ERR(hw);
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/wireless/ti/wlcore/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -5902,7 +5902,7 @@ static int wl1271_init_ieee80211(struct wl1271 *wl)
}

struct ieee80211_hw *wlcore_alloc_hw(size_t priv_size, u32 aggr_buf_size,
u32 mbox_size)
u32 mbox_size, u32 num_tx_desc)
{
struct ieee80211_hw *hw;
struct wl1271 *wl;
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/wireless/ti/wlcore/wlcore.h
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ struct wl1271 {
int wlcore_probe(struct wl1271 *wl, struct platform_device *pdev);
int wlcore_remove(struct platform_device *pdev);
struct ieee80211_hw *wlcore_alloc_hw(size_t priv_size, u32 aggr_buf_size,
u32 mbox_size);
u32 mbox_size, u32 num_tx_desc);
int wlcore_free_hw(struct wl1271 *wl);
int wlcore_set_key(struct wl1271 *wl, enum set_key_cmd cmd,
struct ieee80211_vif *vif,
Expand Down

0 comments on commit e338ff1

Please sign in to comment.