Lines Matching refs:wl
138 static void wilc_wlan_parse_response_frame(struct wilc *wl, u8 *info, int size)
142 struct wilc_cfg *cfg = &wl->cfg;
198 static void wilc_wlan_parse_info_frame(struct wilc *wl, u8 *info)
209 while (wl->cfg.b[i].id != WID_NIL &&
210 wl->cfg.b[i].id != wid)
213 if (wl->cfg.b[i].id == wid)
214 wl->cfg.b[i].val = info[3];
269 int wilc_wlan_cfg_get_val(struct wilc *wl, u16 wid, u8 *buffer,
274 struct wilc_cfg *cfg = &wl->cfg;
358 int wilc_wlan_cfg_init(struct wilc *wl)
363 wl->cfg.b = kmemdup(g_cfg_byte, sizeof(g_cfg_byte), GFP_KERNEL);
364 if (!wl->cfg.b)
367 wl->cfg.hw = kmemdup(g_cfg_hword, sizeof(g_cfg_hword), GFP_KERNEL);
368 if (!wl->cfg.hw)
371 wl->cfg.w = kmemdup(g_cfg_word, sizeof(g_cfg_word), GFP_KERNEL);
372 if (!wl->cfg.w)
375 wl->cfg.s = kmemdup(g_cfg_str, sizeof(g_cfg_str), GFP_KERNEL);
376 if (!wl->cfg.s)
383 wl->cfg.str_vals = str_vals;
385 wl->cfg.s[i].id = WID_FIRMWARE_VERSION;
386 wl->cfg.s[i].str = str_vals->firmware_version;
388 wl->cfg.s[i].id = WID_MAC_ADDR;
389 wl->cfg.s[i].str = str_vals->mac_address;
391 wl->cfg.s[i].id = WID_ASSOC_RES_INFO;
392 wl->cfg.s[i].str = str_vals->assoc_rsp;
394 wl->cfg.s[i].id = WID_NIL;
395 wl->cfg.s[i].str = NULL;
399 kfree(wl->cfg.s);
401 kfree(wl->cfg.w);
403 kfree(wl->cfg.hw);
405 kfree(wl->cfg.b);
409 void wilc_wlan_cfg_deinit(struct wilc *wl)
411 kfree(wl->cfg.b);
412 kfree(wl->cfg.hw);
413 kfree(wl->cfg.w);
414 kfree(wl->cfg.s);
415 kfree(wl->cfg.str_vals);