diff options
author | codeworkx <codeworkx@cyanogenmod.com> | 2012-09-22 09:48:20 +0200 |
---|---|---|
committer | codeworkx <codeworkx@cyanogenmod.com> | 2012-09-22 14:02:16 +0200 |
commit | 2489007e7d740ccbc3e0a202914e243ad5178787 (patch) | |
tree | b8e6380ea7b1da63474ad68a5dba997e01146043 /drivers/net/wireless/ath/ath6kl/softmac.c | |
parent | 5f67568eb31e3a813c7c52461dcf66ade15fc2e7 (diff) | |
download | kernel_samsung_smdk4412-2489007e7d740ccbc3e0a202914e243ad5178787.zip kernel_samsung_smdk4412-2489007e7d740ccbc3e0a202914e243ad5178787.tar.gz kernel_samsung_smdk4412-2489007e7d740ccbc3e0a202914e243ad5178787.tar.bz2 |
merge opensource jb u5
Change-Id: I1aaec157aa196f3448eff8636134fce89a814cf2
Diffstat (limited to 'drivers/net/wireless/ath/ath6kl/softmac.c')
-rw-r--r-- | drivers/net/wireless/ath/ath6kl/softmac.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/softmac.c b/drivers/net/wireless/ath/ath6kl/softmac.c index d26e9e8..3725871 100644 --- a/drivers/net/wireless/ath/ath6kl/softmac.c +++ b/drivers/net/wireless/ath/ath6kl/softmac.c @@ -78,13 +78,15 @@ static int ath6kl_fetch_nvmac_info(struct ath6kl *ar) char *softmac_old_filename = "/data/.mac.info"; do { + /* isnvmac_imei = android_readwrite_file(nvfilepath_imei, NULL, NULL, 0); isnvmac_wifi = android_readwrite_file(nvfilepath_wifi, - NULL, NULL, 0); + NULL, NULL, 0); */ ismac_file = android_readwrite_file(softmac_filename, NULL, NULL, 0); + /* if (isnvmac_imei >= 16 && isnvmac_wifi >= 16) { strcpy(nvfilepath, nvfilepath_wifi); isnvmac_file = isnvmac_wifi; @@ -94,10 +96,11 @@ static int ath6kl_fetch_nvmac_info(struct ath6kl *ar) } else if (isnvmac_imei >= 16) { strcpy(nvfilepath, nvfilepath_imei); isnvmac_file = isnvmac_imei; - } + } */ /* copy .nvmac.info file to .mac.info wifi driver will use .mac.info finally */ + /* if (isnvmac_file >= 16) { ret = android_readwrite_file(nvfilepath, (char *)softmac_temp, NULL, isnvmac_file); @@ -111,9 +114,10 @@ static int ath6kl_fetch_nvmac_info(struct ath6kl *ar) __func__, ret); ret = android_readwrite_file(softmac_old_filename, NULL, (char *)softmac_temp, ret); - } + } */ - if (isnvmac_file < 16 && ismac_file < 16) { + //if (isnvmac_file < 16 && ismac_file < 16) { + if (ismac_file < 16) { snprintf(softmac_temp, sizeof(softmac_temp), "00:12:34:%02x:%02x:%02x", random32() & 0xff, |