|
@@ -7405,9 +7405,13 @@ brcms_c_bss_update_probe_resp(struct brcms_c_info *wlc,
|
|
|
struct brcms_bss_cfg *cfg,
|
|
|
bool suspend)
|
|
|
{
|
|
|
- u16 prb_resp[BCN_TMPL_LEN / 2];
|
|
|
+ u16 *prb_resp;
|
|
|
int len = BCN_TMPL_LEN;
|
|
|
|
|
|
+ prb_resp = kmalloc(BCN_TMPL_LEN, GFP_ATOMIC);
|
|
|
+ if (!prb_resp)
|
|
|
+ return;
|
|
|
+
|
|
|
/*
|
|
|
* write the probe response to hardware, or save in
|
|
|
* the config structure
|
|
@@ -7441,6 +7445,8 @@ brcms_c_bss_update_probe_resp(struct brcms_c_info *wlc,
|
|
|
|
|
|
if (suspend)
|
|
|
brcms_c_enable_mac(wlc);
|
|
|
+
|
|
|
+ kfree(prb_resp);
|
|
|
}
|
|
|
|
|
|
void brcms_c_update_probe_resp(struct brcms_c_info *wlc, bool suspend)
|