wl12xx: AP-mode - reconfigure templates after basic rates change
When there's a change in the basic rates of the AP, reconfigure relevant templates with the new rates. Signed-off-by: Arik Nemtsov <arik@wizery.com> Signed-off-by: Luciano Coelho <coelho@ti.com>
This commit is contained in:
parent
70f474241b
commit
c45a85b5a3
3 changed files with 11 additions and 1 deletions
|
@ -443,7 +443,7 @@ static int wl1271_ap_hw_init(struct wl1271 *wl)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int wl1271_ap_hw_init_post_mem(struct wl1271 *wl)
|
int wl1271_ap_init_templates(struct wl1271 *wl)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
@ -470,6 +470,11 @@ static int wl1271_ap_hw_init_post_mem(struct wl1271 *wl)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int wl1271_ap_hw_init_post_mem(struct wl1271 *wl)
|
||||||
|
{
|
||||||
|
return wl1271_ap_init_templates(wl);
|
||||||
|
}
|
||||||
|
|
||||||
int wl1271_init_ap_rates(struct wl1271 *wl)
|
int wl1271_init_ap_rates(struct wl1271 *wl)
|
||||||
{
|
{
|
||||||
int i, ret;
|
int i, ret;
|
||||||
|
|
|
@ -34,5 +34,6 @@ int wl1271_init_energy_detection(struct wl1271 *wl);
|
||||||
int wl1271_chip_specific_init(struct wl1271 *wl);
|
int wl1271_chip_specific_init(struct wl1271 *wl);
|
||||||
int wl1271_hw_init(struct wl1271 *wl);
|
int wl1271_hw_init(struct wl1271 *wl);
|
||||||
int wl1271_init_ap_rates(struct wl1271 *wl);
|
int wl1271_init_ap_rates(struct wl1271 *wl);
|
||||||
|
int wl1271_ap_init_templates(struct wl1271 *wl);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -2503,6 +2503,10 @@ static void wl1271_bss_info_changed_ap(struct wl1271 *wl,
|
||||||
wl1271_error("AP rate policy change failed %d", ret);
|
wl1271_error("AP rate policy change failed %d", ret);
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ret = wl1271_ap_init_templates(wl);
|
||||||
|
if (ret < 0)
|
||||||
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = wl1271_bss_beacon_info_changed(wl, vif, bss_conf, changed);
|
ret = wl1271_bss_beacon_info_changed(wl, vif, bss_conf, changed);
|
||||||
|
|
Loading…
Reference in a new issue