From: Oleksij Rempel Date: Sun, 17 Mar 2013 16:12:45 +0000 (+0100) Subject: build fix: Magpie_Sys_Commands_Tbl used only if MAGPIE_ENABLE_WLAN == 0 X-Git-Tag: 1.3.2~12^2~30 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=af43f146338f124a121a34117cbebec8a613266d;p=librecmc%2Fopen-ath9k-htc-firmware.git build fix: Magpie_Sys_Commands_Tbl used only if MAGPIE_ENABLE_WLAN == 0 Signed-off-by: Oleksij Rempel --- diff --git a/target_firmware/magpie_fw_dev/target/init/magpie.c b/target_firmware/magpie_fw_dev/target/init/magpie.c index 990e005..2ed5e8f 100755 --- a/target_firmware/magpie_fw_dev/target/init/magpie.c +++ b/target_firmware/magpie_fw_dev/target/init/magpie.c @@ -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;