RDKB-41692 : Using a dynamically allocated structure
RDKB-41692 : Using a dynamically allocated structure

Reason for change: avoid memory access beyond stack frame
Test Procedure: JIRA
Risks: Low
Signed-off-by: Asutosh <asutosh_karanam@comcast.com>

(cherry picked from commit bce8d171c67db111c61bc86a30521ca79ed11f6c)
Change-Id: I10be3dbc36dc4bec7d41292aa10d6f5012ac6849

rdkcmf/rdkb-CcspWifiAgent,rdkcmf/rdkb-CcspWifiAgent,rdkcmf/rdkb-CcspWifiAgent