- // First let's wait for the L1 and L2 to be present
- while (retval) {
- retval = nr5g_fapi_fapi2phy_wls_ready();
- }
- // Now the L2 is up so let's make sure that the L1 was started first
- retval = FAILURE;
- while (retval) {
- retval = nr5g_fapi_fapi2mac_wls_ready();
- }
-
- usleep(1000000);
- // Now that the L2 is up and has completed the Common Memory initialization
- // the FT needs to initialize the FAPI2PHY buffers
- pwls = nr5g_fapi_wls_context();
- if (pwls) {
- if (FAILURE == nr5g_fapi2Phy_wls_init(pwls)) {
- return FAILURE;
- }
- } else {
- return FAILURE;
- }