build fix: Magpie_Sys_Commands_Tbl used only if MAGPIE_ENABLE_WLAN == 0
authorOleksij Rempel <bug-track@fisher-privat.net>
Sun, 17 Mar 2013 16:12:45 +0000 (17:12 +0100)
committerOleksij Rempel <linux@rempel-privat.de>
Sat, 30 Mar 2013 16:27:45 +0000 (17:27 +0100)
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
target_firmware/magpie_fw_dev/target/init/magpie.c

index 990e005e3f4bebefe1b564fc5e883f83d9b6abfc..2ed5e8f9522d90db8fe0f213871012c570ad1903 100755 (executable)
@@ -53,6 +53,7 @@ void htc_setup_comp(void)
 static void dispatch_magpie_sys_cmds(void *pContext, A_UINT16 Command,
                                     A_UINT16 SeqNo, A_UINT8 *buffer, int Length);
 
+#if MAGPIE_ENABLE_WLAN == 0
 static WMI_DISPATCH_ENTRY Magpie_Sys_DispatchEntries[] =
 {
        {dispatch_magpie_sys_cmds,  WMI_ECHO_CMDID, 0},
@@ -60,6 +61,7 @@ static WMI_DISPATCH_ENTRY Magpie_Sys_DispatchEntries[] =
 };
 
 static WMI_DECLARE_DISPATCH_TABLE(Magpie_Sys_Commands_Tbl, Magpie_Sys_DispatchEntries);
+#endif
 
 htc_handle_t htc_handle;