summaryrefslogtreecommitdiff
path: root/plugins/iwmx.c
diff options
context:
space:
mode:
authorInaky Perez-Gonzalez <inaky@linux.intel.com>2009-10-08 11:33:14 +0900
committerMarcel Holtmann <marcel@holtmann.org>2009-10-10 14:35:49 +0200
commit9856478957f315b63cd273d8d76589bb38daf2de (patch)
treeb1e576d8fe051feb706840493c98fabbf5527d8d /plugins/iwmx.c
parentb75ce22c33c824f61820091f06d4d9c0df7bcbed (diff)
downloadconnman-9856478957f315b63cd273d8d76589bb38daf2de.tar.gz
connman-9856478957f315b63cd273d8d76589bb38daf2de.tar.bz2
connman-9856478957f315b63cd273d8d76589bb38daf2de.zip
Add work around Intel WiMAX SDK API breakage
Release of the Intel WiMAX SDK 1.5 breaks source compatibility from 1.4 by removing WIMAX_API_DEVICE_STATUS_Connection_Idle. Rather than fight a useless fight, work aronud it with an autoconf test and a few (ugly) #ifdefs.
Diffstat (limited to 'plugins/iwmx.c')
-rw-r--r--plugins/iwmx.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/iwmx.c b/plugins/iwmx.c
index ccbd1d21..74e9786c 100644
--- a/plugins/iwmx.c
+++ b/plugins/iwmx.c
@@ -299,6 +299,7 @@ void __iwmx_cm_state_change(struct wmxsdk *wmxsdk,
* For practical effects, some states are the same
*/
+#if HAVE_IWMXSDK_STATUS_IDLE
/* Conection_Idle is the same as Data_Connected */
if (__old_status == WIMAX_API_DEVICE_STATUS_Connection_Idle)
old_status = WIMAX_API_DEVICE_STATUS_Data_Connected;
@@ -308,7 +309,7 @@ void __iwmx_cm_state_change(struct wmxsdk *wmxsdk,
new_status = WIMAX_API_DEVICE_STATUS_Data_Connected;
else
new_status = __new_status;
-
+#endif /* #if HAVE_IWMXSDK_STATUS_IDLE */
/* Radio off: all are just RF_OFF_SW (the highest) */
switch (__old_status) {
case WIMAX_API_DEVICE_STATUS_RF_OFF_HW_SW: