summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSanjay Devnani <sdevnani@qca.qualcomm.com>2014-02-05 16:05:03 -0800
committerAkash Patel <c_akashp@qca.qualcomm.com>2014-02-07 23:06:10 -0800
commit0a9e22796c65eea458db389c11d7b2db54400a25 (patch)
tree2ad3e1461cf3ff40f6deee738062f37f715f99e3
parent1f342175db9079dd8bab11a1396263b0bdba77fc (diff)
wlan: make cfg.dat file read 64 bit compatible
sizeof long on a 32 bit machine is 4 and 8 on a 64 bit machine. cfg.dat is generated with the assumption that long fields are 32 bit. Change the data types of all the long fields here to a 32 bit type. Change-Id: If3a3c48858bcf8a9ae3a4037d3c1eba5bd0c05cb CRs-fixed: 607499
-rw-r--r--CORE/MAC/src/cfg/polFile.h10
-rw-r--r--CORE/SYS/common/src/wlan_qct_sys.c10
2 files changed, 10 insertions, 10 deletions
diff --git a/CORE/MAC/src/cfg/polFile.h b/CORE/MAC/src/cfg/polFile.h
index e18e49346e90..6378918e0cd9 100644
--- a/CORE/MAC/src/cfg/polFile.h
+++ b/CORE/MAC/src/cfg/polFile.h
@@ -123,8 +123,8 @@ typedef struct sPolFileHeader {
tPolFileVersion FileVersion;
tPolFileVersion HWCapabilities;
- unsigned long FileLength;
- unsigned long NumDirectoryEntries;
+ unsigned int FileLength;
+ unsigned int NumDirectoryEntries;
} tPolFileHeader;
@@ -143,9 +143,9 @@ typedef enum ePolFileDirTypes {
typedef struct sPolFileDirEntry {
- unsigned long DirEntryType;
- unsigned long DirEntryFileOffset;
- unsigned long DirEntryLength;
+ unsigned int DirEntryType;
+ unsigned int DirEntryFileOffset;
+ unsigned int DirEntryLength;
} tPolFileDirEntry;
diff --git a/CORE/SYS/common/src/wlan_qct_sys.c b/CORE/SYS/common/src/wlan_qct_sys.c
index bc8b89020747..b84aa81de21f 100644
--- a/CORE/SYS/common/src/wlan_qct_sys.c
+++ b/CORE/SYS/common/src/wlan_qct_sys.c
@@ -199,8 +199,8 @@ typedef struct sPolFileHeader
{
tPolFileVersion FileVersion;
tPolFileVersion HWCapabilities;
- unsigned long FileLength;
- unsigned long NumDirectoryEntries;
+ unsigned int FileLength;
+ unsigned int NumDirectoryEntries;
} tPolFileHeader;
@@ -219,9 +219,9 @@ typedef enum ePolFileDirTypes
typedef struct sPolFileDirEntry
{
- unsigned long DirEntryType;
- unsigned long DirEntryFileOffset;
- unsigned long DirEntryLength;
+ unsigned int DirEntryType;
+ unsigned int DirEntryFileOffset;
+ unsigned int DirEntryLength;
} tPolFileDirEntry;