In an attempt to update the AOKP 7.1.1 rom for the Samsung Galaxy S4 to 7.1.2, I received an error about AOKP712/hardware/libhardware_legacy/wifi/wifi.c:179.18. The error complained that the CID_PATH was not defined, declared, or was not known.

Obviously, it was supposed to be declared somewhere, and I had two choices, declare it, or replace it with the actual path. I did the latter. Here is the old file:

[CODE]
#ifdef SAMSUNG_WIFI
char* get_samsung_wifi_type()
{
char buf[10];
int fd = open(CID_PATH, O_RDONLY);
if (fd < 0)
return NULL;
[/CODE]

And here is the new file changes:

[CODE]
#ifdef SAMSUNG_WIFI
char* get_samsung_wifi_type()
{
char buf[10];
int fd = open(“/data/.cid.info”, O_RDONLY); // WJH
if (fd < 0)
return NULL;
[/CODE]

And, to God be the glory, it works! One error down, only dozens to go!

Linux – keep it simple.

Leave a Reply

Your email address will not be published. Required fields are marked *