Call netdev_register() in sx127x_setup() and pass the index in auto_init_sx127x() and semtech_loramac_init()