Reference Manual

Redpine Signals, Inc. Proprietary and Confidential Page 4
RS9116 n-Link Linux and Android
Technical Reference Manual
Version 2.0
Table Of Contents
1 Introduction to RS9116 ........................................................................................................... 11
2 Getting Started with RS9116 ................................................................................................... 12
2.1 Hardware Requirements .............................................................................................................. 12
2.2 Software Requirements ............................................................................................................... 12
2.3 Software Package Contents .......................................................................................................... 12
3 Compiling the Driver ............................................................................................................... 13
4 Installing the Driver ................................................................................................................ 18
4.1 Installation of Modules ................................................................................................................ 18
4.2 Enabling a Protocol ...................................................................................................................... 18
4.3 Disabling a Protocol ..................................................................................................................... 19
4.4 OneBox-Mobile in Wi-Fi Only Mode ............................................................................................. 19
4.4.1 Installation in Wi-Fi Client Mode (with BSD interface support) ...................................................................... 19
4.4.2 Installation in Access Point Mode (with BSD interface support) ..................................................................... 23
4.4.3 Installation in Wi-Fi Client Mode (with NL80211 support).............................................................................. 24
4.4.4 Installation in Wi-Fi AP mode (with NL80211 support) ................................................................................... 26
4.4.5 Installation in Wi-Fi Direct Mode (With BSD Interface Support) ..................................................................... 28
4.4.5.1 Autonomous GO Mode ............................................................................................................................... 28
4.4.6 Installation in Wi-Fi Direct Mode (With NL80211 Support only for Kernel v3.8 or higher) ............................ 29
4.4.6.1 Autonomous GO Mode ............................................................................................................................... 29
4.5 OneBox-Mobile in Wi-Fi + Bluetooth Classic Coexistence Mode ..................................................... 30
4.6 OneBox-Mobile in Wi-Fi + Bluetooth LE Coexistence Mode ........................................................... 31
4.6.1 Advertise, Scan, Connect Commands .............................................................................................................. 31
4.7 OneBox-Mobile in Wi-Fi + Bluetooth Classic + Bluetooth LE Coexistence Mode .............................. 32
4.8 OneBox-Mobile in Wi-Fi + ZigBee Coexistence Mode ..................................................................... 34
4.8.1 Building and Running the Sample Home Automation Switch Application ...................................................... 34
4.8.1.1 About the Sample Application..................................................................................................................... 35
4.8.1.2 Host API Folder Structure ............................................................................................................................ 35
4.8.1.3 Building and Running the Home Automation Sample Application ............................................................. 35
4.9 Driver Uninstallation Procedure ................................................................................................... 35
4.10 Driver Information .................................................................................................................... 35
4.10.1 Driver Statistics ............................................................................................................................................... 35
4.10.2 Disabling Driver Debug Prints .......................................................................................................................... 36
5 Wi-Fi ioctl Usage Guide ........................................................................................................... 37
5.1 Configuring using Wireless Extensions .......................................................................................... 37
5.2 Private (Driver-Specific) Commands for Access Point and Client Modes ......................................... 39
5.3 Private (Driver- Specific) Commands for Access Point Mode .......................................................... 41
5.4 Private (Driver- Specific) Commands for Client Mode .................................................................... 45
5.5 Configuring Using onebox_util ...................................................................................................... 45
5.5.1 WPS Configuration .......................................................................................................................................... 56
5.5.1.1 Access Point Mode ...................................................................................................................................... 57
5.5.1.2 Client Mode ................................................................................................................................................. 58
6 Configuration Using CFG80211 ................................................................................................ 59
6.1 Using iw Wireless Tool ................................................................................................................. 59
7 Enterprise security using CFG80211 ........................................................................................ 62
7.1 Installation and configuration of FREERADIUS Server .................................................................... 62