Lines Matching refs:join_cfg
238 const struct lorawan_join_config *join_cfg) in lorawan_join_otaa() argument
256 join_cfg->otaa.dev_nonce; in lorawan_join_otaa()
260 mib_req.Param.DevEui = join_cfg->dev_eui; in lorawan_join_otaa()
264 mib_req.Param.JoinEui = join_cfg->otaa.join_eui; in lorawan_join_otaa()
268 mib_req.Param.NwkKey = join_cfg->otaa.nwk_key; in lorawan_join_otaa()
272 mib_req.Param.AppKey = join_cfg->otaa.app_key; in lorawan_join_otaa()
279 const struct lorawan_join_config *join_cfg) in lorawan_join_abp() argument
292 mib_req.Param.DevAddr = join_cfg->abp.dev_addr; in lorawan_join_abp()
296 mib_req.Param.FNwkSIntKey = join_cfg->abp.nwk_skey; in lorawan_join_abp()
300 mib_req.Param.SNwkSIntKey = join_cfg->abp.nwk_skey; in lorawan_join_abp()
304 mib_req.Param.NwkSEncKey = join_cfg->abp.nwk_skey; in lorawan_join_abp()
308 mib_req.Param.AppSKey = join_cfg->abp.app_skey; in lorawan_join_abp()
438 int lorawan_join(const struct lorawan_join_config *join_cfg) in lorawan_join() argument
451 if (join_cfg->mode == LORAWAN_ACT_OTAA) { in lorawan_join()
452 status = lorawan_join_otaa(join_cfg); in lorawan_join()
472 } else if (join_cfg->mode == LORAWAN_ACT_ABP) { in lorawan_join()
473 status = lorawan_join_abp(join_cfg); in lorawan_join()