Project

General

Profile

Issue #957 » 0001-Don-t-require-non-free-libpn544_fw.so-file.patch

Simon Josefsson, 08/09/2014 11:46 PM

View differences:

src/phHal4Nfc.c
357 357
    NFCSTATUS openRetVal = NFCSTATUS_SUCCESS;
358 358
    phHal4Nfc_Hal4Ctxt_t *Hal4Ctxt = NULL;
359 359
    phHciNfc_Init_t   eHciInitType = (phHciNfc_Init_t)InitType;
360
    int rc;
361 360

  
362 361
    /*Set Default Clock settings once*/
363 362
    static phHal_sHwConfig_t sHwConfig = {
......
379 378
    else/*Do an initialization*/
380 379
    {
381 380
#ifdef ANDROID
382
        rc = dlopen_firmware();
383
        if(rc < 0)
384
        {
385
            openRetVal = NFCSTATUS_FAILED;
386
            pOpenCallback(pContext, openRetVal);
387
            return openRetVal;
388
        }
381
        dlopen_firmware();
389 382
#endif
390 383

  
391 384
        /*If hal4 ctxt in Hwreference is NULL create a new context*/
(1-1/3)