OpenWRT

Patches

Patches section


Source patches


These are my patches submitted to OpenWRT trunk. Patches ID 0001-0020 have been accepted by core developers and are included in trunk (aka Designated Driver). At the time of submittal, Chaos Chalmer 15.05 was already in stable phase so I decided not to try to include them there. However, for those not interested in testing new releases, I've made a backport of all my patches compatible with Chaos Calmer.

Patch ID 0021 is informative only and it has been rejected, but in my opinion it is quite useful to have final wireless MAC information visible in boot log.

IDInfoDescriptionOpenWrt 15.05OpenWrt trunk
0001mac80211: ath9k: enable platform WLAN LED nameEnable platform-supplied WLAN LED name for ath9k device.patchincluded
0002mac80211: ath9k: set default state for platform LEDsSupport default state for platform LEDs connected to ath9k device. Now LEDs are correctly set on or off at ath9k module initialization.patchincluded
0003mac80211: ath9k: enable access to GPIOEnable access to GPIO chip and its pins for Atheros AR92xx wireless devices. For now AR9285 and AR9287 are supported.patchincluded
0004mac80211: ath9k: enable GPIO buttonsEnable platform-defined GPIO button support for ath9k device. Key poller is activated for attached platform buttons. Requires ath9k GPIO chip access.patchincluded
0005ar71xx: WNR2000v3: exclude USB modules from imageNetgear WNR2000v3 has no USB port yet default system image includes USB kernel modules. This patch fixes that.patchfixed
0006ar71xx: WNR2000v3: fix for random WLAN MACFix for invalid/random WLAN MAC address in WNR2000v3. Permanent platform MAC is calculated and assigned during system startup. WLAN MAC follows wired Ethernet interface addresses.patchincluded
0007ar71xx: WNR2000v3: enable control of all LEDs and buttonsThis patch provides full GPIO support for WNR2000v3 (LEDs and buttons). It exposes all LEDs to operating system, including Ethernet ones.patchincluded
0008switch: make port_mask file write handler use kstrtoul() functionThis patch changes swconfig_trig_port_mask_store() handler to utilize kstrtoul() function instead of call to obsolete simple_strtoul(). Thanks to this change, new handler takes less memory and makes port_mask special file accept not only hexadecimal, but also decimal and octal numbers.patchincluded
0009switch: allow Ethernet port LEDs to show specific port speeds onlyThis patch adds speed_mask special file to LEDs connected to switch ports via switch trigger. It allows to choose which speeds to signal when link is up. If router has more than one LED per port, they may light up differently depending on how fast connection is. Default setting is all speeds so backward compatibilty with system scripts (for example uci) is maintained.patchincluded
0010uci: add support for speed mask to switch config init scriptsThis patch adds extra parameter to switch LED trigger initialization functions. New functionality maintains backward compatibility, so calling functions without setting new speed_mask parameter works as expected.patchincluded
0011ar71xx: WNR2000v3: add speed_mask to Ethernet port LED initializationThis patch add speed_mask parameter to Ethernet port LED initialization during system startup. LEDs are configured to show amber light for 10 Mbps link and green for 100 Mbps as described on device label.patchincluded
0012ar71xx: WNR612v2: exclude USB modules from imageNetgear WNR612v2 has no USB port yet default system image includes USB kernel modules. This patch fixes that.patchfixed
0013ar71xx: WNR612v2: fix for random WLAN MACFix for invalid/random WLAN MAC address in WNR612v2. Permanent platform MAC is calculated and assigned during system startup. WLAN MAC follows wired Ethernet interface addresses. This is the same fix as for WNR2000v3.patchincluded
0014ar71xx: WNR612v2: enable control of all LEDs and buttonsThis patch provides full GPIO support for WNR612v2 (LEDs and buttons). It exposes all LEDs to operating system, including Ethernet ones.patchincluded
0015ar71xx: WNR1000v2: exclude USB modules from imageNetgear WNR1000v2 has no USB port yet default system image includes USB kernel modules. This patch fixes that.patchfixed
0016ar71xx: WNR1000v2: fix for random WLAN MACFix for invalid/random WLAN MAC address in WNR1000v2. Permanent platform MAC is calculated and assigned during system startup. WLAN MAC follows wired Ethernet interface addresses. This is the same fix as for WNR2000v3 and WNR612v2.patchincluded
0017ar71xx: WNR1000v2: enable control of all LEDs and buttonsThis patch provides full GPIO support for WNR1000v2 (LEDs and buttons). It exposes all LEDs to operating system, including Ethernet ones.patchincluded
0018ar71xx: WNR2200: fix for random WLAN MACFix for invalid/random/duplicate WLAN MAC address in WNR2200. Permanent platform MAC is calculated and assigned during system startup. WLAN MAC follows wired Ethernet interface addresses.patchincluded
0019ar71xx: WNR2200: enable control of all LEDs and buttonsThis patch provides full GPIO support for WNR2200 (LEDs and buttons). It exposes all LEDs to operating system, including Ethernet ones.patchincluded
0020mac80211: ath9k: add GPIO support for AR9280 chipEnable access to GPIO on Atheros wireless chip AR9280. Support for 9280 is added to existing 9285/9287 subsystem because these 3 chips differ only in number of GPIO pins.patchincluded
0021mac80211: ath9k: show platform MAC address in kernel log if setAdd information in kernel log during module startup if MAC address of WLAN device is overridden by platform-supplied one.patchpatch



Patch for DGN2200v1


000-netgear-dgn2200v1.patch
enable full support (LEDs and buttons) for Netgear DGN2200 v1 router