summaryrefslogtreecommitdiffstats
path: root/src/adapter.c
diff options
context:
space:
mode:
authorAlok Barsode <alok.barsode@azingo.com>2008-08-07 14:31:49 +0530
committerLuiz Augusto von Dentz <luiz.dentz@indt.org.br>2008-08-13 15:06:50 -0300
commit2d1286883e26d7b483d917ee2f0456762b27e2bb (patch)
treed235a7c315aa3fb6ad36a0db14b26734e484fffe /src/adapter.c
parent8de21fda4fdeaa150c7e6d8ec579f4593d2c567c (diff)
Adding adapter_set_mode and adapter_get_mode.
Signed-off-by: Alok Barsode <alok.barsode@azingo.com>
Diffstat (limited to 'src/adapter.c')
-rw-r--r--src/adapter.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/adapter.c b/src/adapter.c
index d0ae3190..0657b838 100644
--- a/src/adapter.c
+++ b/src/adapter.c
@@ -2709,3 +2709,16 @@ uint8_t adapter_get_scan_mode(struct adapter *adapter)
{
return adapter->scan_mode;
}
+
+void adapter_set_mode(struct adapter *adapter, uint8_t mode)
+{
+ if (!adapter)
+ return;
+
+ adapter->mode = mode;
+}
+
+uint8_t adapter_get_mode(struct adapter *adapter)
+{
+ return adapter->mode;
+}