Lines Matching refs:zconf
77 static int wl_ext_genl_send(struct genl_params *zconf, struct net_device *dev,
228 struct genl_params *zconf = (struct genl_params *)argu; in wl_ext_probreq_event() local
302 ret = wl_ext_genl_send(zconf, dev, buf, event_len); in wl_ext_probreq_event()
314 struct genl_params *zconf = g_zconf; in wl_ext_genl_recv() local
325 if (zconf == NULL) { in wl_ext_genl_recv()
329 dev = zconf->dev; in wl_ext_genl_recv()
362 wl_ext_genl_send(struct genl_params *zconf, struct net_device *dev, in wl_ext_genl_send() argument
371 if (zconf->bind_pid == -1) { in wl_ext_genl_send()
401 AGENL_TRACE(dev->name, "send to process %d\n", zconf->bind_pid); in wl_ext_genl_send()
402 ret = genlmsg_unicast(&init_net, skb, zconf->bind_pid); in wl_ext_genl_send()
405 zconf->send_retry_cnt++; in wl_ext_genl_send()
406 if(zconf->send_retry_cnt >= GENLMSG_UNICAST_RETRY_LIMIT) { in wl_ext_genl_send()
408 zconf->send_retry_cnt, zconf->bind_pid); in wl_ext_genl_send()
409 zconf->bind_pid = -1; in wl_ext_genl_send()
420 zconf->send_retry_cnt = 0; in wl_ext_genl_send()
428 struct genl_params *zconf = g_zconf; in wl_ext_genl_bind() local
441 if (zconf == NULL) { in wl_ext_genl_bind()
445 dev = zconf->dev; in wl_ext_genl_bind()
468 if (bind == zconf->bind) { in wl_ext_genl_bind()
475 zconf->bind_pid = info->snd_portid; in wl_ext_genl_bind()
477 AGENL_TRACE(dev->name, "BIND pid = %d\n", zconf->bind_pid); in wl_ext_genl_bind()
481 zconf->bind = TRUE; in wl_ext_genl_bind()
482 zconf->pm = dhd->conf->pm; in wl_ext_genl_bind()
488 AGENL_TRACE(dev->name, "UNBIND pid = %d\n", zconf->bind_pid); in wl_ext_genl_bind()
490 zconf->bind_pid = -1; in wl_ext_genl_bind()
494 dhd->conf->pm = zconf->pm; in wl_ext_genl_bind()
495 zconf->bind = FALSE; in wl_ext_genl_bind()
505 struct genl_params *zconf = dhd->zconf; in wl_ext_genl_init() local
510 zconf = kzalloc(sizeof(struct genl_params), GFP_KERNEL); in wl_ext_genl_init()
511 if (unlikely(!zconf)) { in wl_ext_genl_init()
515 dhd->zconf = (void *)zconf; in wl_ext_genl_init()
531 zconf->bind_pid = -1; in wl_ext_genl_init()
534 zconf, PRIO_EVENT_IAPSTA); in wl_ext_genl_init()
538 zconf->dev = net; in wl_ext_genl_init()
539 g_zconf = zconf; in wl_ext_genl_init()
543 if(zconf) in wl_ext_genl_init()
544 kfree(zconf); in wl_ext_genl_init()
552 struct genl_params *zconf = dhd->zconf; in wl_ext_genl_deinit() local
561 if(zconf != NULL) { in wl_ext_genl_deinit()
562 kfree(dhd->zconf); in wl_ext_genl_deinit()
563 dhd->zconf = NULL; in wl_ext_genl_deinit()