From cbdd2a90c5af5d5dc50014b3c257385a31c77e55 Mon Sep 17 00:00:00 2001 From: Jarkko Paso Date: Thu, 26 Apr 2018 16:33:17 +0300 Subject: [PATCH] Fixed set channel unit test --- test/nanostack/unittest/mac/fhss_callbacks/test_fhss_callbacks.c | 1 + 1 file changed, 1 insertion(+) diff --git a/test/nanostack/unittest/mac/fhss_callbacks/test_fhss_callbacks.c b/test/nanostack/unittest/mac/fhss_callbacks/test_fhss_callbacks.c index 2f5f8f803229..5790ac20e0a7 100644 --- a/test/nanostack/unittest/mac/fhss_callbacks/test_fhss_callbacks.c +++ b/test/nanostack/unittest/mac/fhss_callbacks/test_fhss_callbacks.c @@ -123,6 +123,7 @@ bool test_mac_set_channel() arm_device_driver_list_s dev_driver; phy_driver.phy_tx_done_cb = tx_done; dev_driver.phy_driver = &phy_driver; + memset(&setup, 0, sizeof(protocol_interface_rf_mac_setup_s)); setup.fhss_api = &fhss_api; setup.dev_driver = &dev_driver; mac_mlme_stub.int8_value = 0;