Skip to content

Commit

Permalink
wlcore: configure rate policies for p2p mgmt interface
Browse files Browse the repository at this point in the history
Otherwise p2p packets come out with arbitrary rates.

Signed-off-by: Arik Nemtsov <arik@wizery.com>
  • Loading branch information
ariknem committed Aug 8, 2012
1 parent ba32e26 commit 2148a00
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/ti/wlcore/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ static int wl12xx_init_fwlog(struct wl1271 *wl)
}

/* generic sta initialization (non vif-specific) */
static int wl1271_sta_hw_init(struct wl1271 *wl, struct wl12xx_vif *wlvif)
int wl1271_sta_hw_init(struct wl1271 *wl, struct wl12xx_vif *wlvif)
{
int ret;

Expand Down
1 change: 1 addition & 0 deletions drivers/net/wireless/ti/wlcore/init.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,6 @@ int wl1271_hw_init(struct wl1271 *wl);
int wl1271_init_vif_specific(struct wl1271 *wl, struct ieee80211_vif *vif);
int wl1271_init_ap_rates(struct wl1271 *wl, struct wl12xx_vif *wlvif);
int wl1271_ap_init_templates(struct wl1271 *wl, struct ieee80211_vif *vif);
int wl1271_sta_hw_init(struct wl1271 *wl, struct wl12xx_vif *wlvif);

#endif
5 changes: 5 additions & 0 deletions drivers/net/wireless/ti/wlcore/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2302,6 +2302,11 @@ static int wl1271_op_add_interface(struct ieee80211_hw *hw,
&wlvif->dev_role_id);
if (ret < 0)
goto out;

/* needed mainly for configuring rate policies */
ret = wl1271_sta_hw_init(wl, wlvif);
if (ret < 0)
return ret;
}

list_add(&wlvif->list, &wl->wlvif_list);
Expand Down

0 comments on commit 2148a00

Please sign in to comment.