\r
class DebugCommand : public WifiCommand\r
{\r
- char *mBuff;\r
- int *mBuffSize;\r
- u32 *mNumRings;\r
- wifi_ring_buffer_status *mStatus;\r
- unsigned int *mSupport;\r
- u32 mVerboseLevel;\r
- u32 mFlags;\r
- u32 mMaxIntervalSec;\r
- u32 mMinDataSize;\r
- char *mRingName;\r
+ char *mBuff = NULL;\r
+ int *mBuffSize = NULL;\r
+ u32 *mNumRings = NULL;\r
+ wifi_ring_buffer_status *mStatus = NULL;\r
+ unsigned int *mSupport = NULL;\r
+ u32 mVerboseLevel = 0;\r
+ u32 mFlags = 0;\r
+ u32 mMaxIntervalSec = 0;\r
+ u32 mMinDataSize = 0;\r
+ char *mRingName = NULL;\r
GetCmdType mType;\r
\r
public:\r
\r
class PacketFateCommand: public WifiCommand\r
{\r
- void *mReportBufs;\r
- size_t mNoReqFates;\r
- size_t *mNoProvidedFates;\r
+ void *mReportBufs = NULL;\r
+ size_t mNoReqFates = 0;\r
+ size_t *mNoProvidedFates = NULL;\r
PktFateReqType mReqType;\r
\r
public:\r
int mBuffSize;\r
char *mBuff;\r
GetCmdType mType;\r
-\r
+ \r
public:\r
MemoryDumpCommand(wifi_interface_handle iface, wifi_firmware_memory_dump_handler handler, GetCmdType cmdtype )\r
: WifiCommand(iface, 0), mHandler(handler), mBuffSize(0), mBuff(NULL), mType(cmdtype)\r
- { }\r
+ { \r
+ memset(&mHandler,0,sizeof(wifi_firmware_memory_dump_handler));\r
+ }\r
\r
MemoryDumpCommand(wifi_interface_handle iface, wifi_driver_memory_dump_callbacks callback, GetCmdType cmdtype)\r
: WifiCommand(iface, 0), mcallback(callback), mBuffSize(0), mBuff(NULL), mType(cmdtype)\r
- { }\r
+ {\r
+ memset(&mcallback,0,sizeof(wifi_driver_memory_dump_callbacks));\r
+ }\r
\r
int createRequest(WifiRequest &request) {\r
int result;\r