src/lmic/lmic_in866.c
// india ignores join, becuase the channel setup is the same either way.
india ignores join, becuase the channel setup is the same either way.
india ignores join becuase the channel setup is the same either way .
void LMICin866_initDefaultChannels(bit_t join) {
        LMIC_API_PARAMETER(join);
        os_clearMem(&LMIC.channelFreq, sizeof(LMIC.channelFreq));
#if !defined(DISABLE_MCMD_DlChannelReq)
        os_clearMem(&LMIC.channelDlFreq, sizeof(LMIC.channelDlFreq));
#endif 
        os_clearMem(&LMIC.channelDrMap, sizeof(LMIC.channelDrMap));
        os_clearMem(&LMIC.bands, sizeof(LMIC.bands));
        LMIC.channelMap = (1 << NUM_DEFAULT_CHANNELS) - 1;
        for (u1_t fu = 0; fu<NUM_DEFAULT_CHANNELS; fu++) {
                LMIC.channelFreq[fu] = TABLE_GET_U4(iniChannelFreq, fu);
                LMIC.channelDrMap[fu] = DR_RANGE_MAP(IN866_DR_SF12, IN866_DR_SF7);
        }
        LMIC.bands[BAND_MILLI].txcap = 1;  
        LMIC.bands[BAND_MILLI].txpow = IN866_TX_EIRP_MAX_DBM;
        LMIC.bands[BAND_MILLI].lastchnl = os_getRndU1() % MAX_CHANNELS;
        LMIC.bands[BAND_MILLI].avail = os_getTime();
}
void LMICin866_initDefaultChannels ( bit_t join ) { LMIC_API_PARAMETER ( join ) ; os_clearMem ( & LMIC . channelFreq , sizeof ( LMIC . channelFreq ) ) ; #if ! defined ( DISABLE_MCMD_DlChannelReq ) os_clearMem ( & LMIC . channelDlFreq , sizeof ( LMIC . channelDlFreq ) ) ; #endif os_clearMem ( & LMIC . channelDrMap , sizeof ( LMIC . channelDrMap ) ) ; os_clearMem ( & LMIC . bands , sizeof ( LMIC . bands ) ) ; LMIC . channelMap = ( 1 << NUM_DEFAULT_CHANNELS ) - 1 ; for ( u1_t fu = 0 ; fu < NUM_DEFAULT_CHANNELS ; fu ++ ) { LMIC . channelFreq [ fu ] = TABLE_GET_U4 ( iniChannelFreq , fu ) ; LMIC . channelDrMap [ fu ] = DR_RANGE_MAP ( IN866_DR_SF12 , IN866_DR_SF7 ) ; } LMIC . bands [ BAND_MILLI ] . txcap = 1 ; LMIC . bands [ BAND_MILLI ] . txpow = IN866_TX_EIRP_MAX_DBM ; LMIC . bands [ BAND_MILLI ] . lastchnl = os_getRndU1 ( ) % MAX_CHANNELS ; LMIC . bands [ BAND_MILLI ] . avail = os_getTime ( ) ; }
india ignores join, becuase the channel setup is the same either way.
india ignores join becuase the channel setup is the same either way .
// !DISABLE_MCMD_DlChannelReq // no limit, in effect.