Skip to content

Commit

Permalink
Add AP+STA support for HLK-RM04
Browse files Browse the repository at this point in the history
  • Loading branch information
JiapengLi committed Sep 19, 2013
1 parent ce91075 commit b46863e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ HLK-RM04 has 4M flash and 16M SDRAM on chip, has 1 USB port, 2 Serial Ports(lite
- **openwrt-add-support-for-hilink-hlk-rm04.patch** -- patch to add "HILINK HLK-RM04" to OpenWrt
- **openwrt-fix-enable-uartf-kernel-panic.patch** -- patch to fix the kernel panic after enable UARTF
- **openwrt-hlk-rm04-firwmware-tool.patch** -- this patch was writen by Jeff Kent form openwrt forum, this patch make us upload firmware from official webUI upload firmware interface
- **openwrt-rt5350-add-AP+STA-support.patch** -- this patch was made by jonsmirl who is from OpenWrt mail list. In order to let AP and STA mode work together. With this patch one can enable AP+STA mode, for now user need to enable STA first.
- **uboot128.img** -- uboot for 16M SDRAM, if you don't modify the HLK-RM04, use this uboot image
- **uboot256.img** -- uboot for 32M SDRAM, some people may want to expand the Uboot, and these men should use this uboot image
- **[hlk-rm04-boot-log.md](./hlk-rm04-boot-log.md)** -- some hardware information and openwrt bootlog of HLK-RM04
Expand All @@ -35,6 +36,7 @@ This is achieved using the following code snippet:
patch -p0 <../OpenWrt-HiLink-HLK-RM04/openwrt-add-support-for-hilink-hlk-rm04.patch
patch -p0 <../OpenWrt-HiLink-HLK-RM04/openwrt-hlk-rm04-firmware-tool.patch
patch -p0 <../OpenWrt-HiLink-HLK-RM04/openwrt-fix-enable-uartf-kernel-panic.patch
patch -p0 <../OpenWrt-HiLink-HLK-RM04/openwrt-rt5350-add-AP+STA-support.patch

Also you may want some extra package(if not, skip then) :

Expand Down
16 changes: 16 additions & 0 deletions openwrt-rt5350-add-AP+STA-support.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Index: package/kernel/mac80211/patches/620-rt2x00-add-AP+STA-support.patch
===================================================================
--- package/kernel/mac80211/patches/620-rt2x00-add-AP+STA-support.patch (revision 0)
+++ package/kernel/mac80211/patches/620-rt2x00-add-AP+STA-support.patch (working copy)
@@ -0,0 +1,11 @@
+--- a/drivers/net/wireless/rt2x00/rt2x00dev.c
++++ b/drivers/net/wireless/rt2x00/rt2x00dev.c
+@@ -1263,7 +1263,7 @@ static inline void rt2x00lib_set_if_comb
+ */
+ if_limit = &rt2x00dev->if_limits_ap;
+ if_limit->max = rt2x00dev->ops->max_ap_intf;
+- if_limit->types = BIT(NL80211_IFTYPE_AP);
++ if_limit->types = BIT(NL80211_IFTYPE_AP) | BIT(NL80211_IFTYPE_STATION);
+ #ifdef CPTCFG_MAC80211_MESH
+ if_limit->types |= BIT(NL80211_IFTYPE_MESH_POINT);
+ #endif

0 comments on commit b46863e

Please sign in to comment.