summaryrefslogtreecommitdiff
path: root/drivers/staging/rtl8188eu/core/rtw_iol.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/staging/rtl8188eu/core/rtw_iol.c')
-rw-r--r--drivers/staging/rtl8188eu/core/rtw_iol.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/drivers/staging/rtl8188eu/core/rtw_iol.c b/drivers/staging/rtl8188eu/core/rtw_iol.c
new file mode 100644
index 0000000..fc3c662
--- /dev/null
+++ b/drivers/staging/rtl8188eu/core/rtw_iol.c
@@ -0,0 +1,19 @@
+// SPDX-License-Identifier: GPL-2.0
+/******************************************************************************
+ *
+ * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
+ *
+ ******************************************************************************/
+
+#include <rtw_iol.h>
+
+bool rtw_iol_applied(struct adapter *adapter)
+{
+ if (adapter->registrypriv.fw_iol == 1)
+ return true;
+
+ if (adapter->registrypriv.fw_iol == 2 &&
+ !adapter_to_dvobj(adapter)->ishighspeed)
+ return true;
+ return false;
+}