[OpenWrt-Devel] [PATCH v2 0/7] Move caldata extraction and MAC patching to common file

Adrian Schmutzler freifunk at adrianschmutzler.de
Sun Sep 22 05:57:10 EDT 2019


This is an update of my patchset unifying caldata extraction
and MAC patching. I've improved some tiny things and despite that
mostly done rebasing.
I've also included the patch for the special situation in lantiq
I sent separately for v1.

The patchset removes 417 lines of redundant code, which despite that
also included several variations of the same approach.

This has been tested on:
- ath79/ath9k: WDR4300 v1
- ath79/ath10k: Archer C60 v2
- ipq806x: TP-Link C2600

I would be happy about other tests, especially for ramips and lantiq.

#
#*** BLURB HERE ***
#
Adrian Schmutzler (7):
  treewide: fix hex2dec conversion for MAC address checksum offset
  base-files: move xor() from caldata extraction to functions.sh
  treewide: move calibration data extraction function to library
  treewide: move MAC address patch functions to common library
  ath79: set checksum when patching MAC address on ath10k
  lantiq: set checksum when patching MAC address on ath10k
  lantiq: modify ath9k caldata extraction to reuse caldata.sh

 package/base-files/files/lib/functions.sh     |  16 ++
 .../base-files/files/lib/functions/caldata.sh | 128 ++++++++++++++
 .../etc/hotplug.d/firmware/10-ath9k-eeprom    |  61 +------
 .../etc/hotplug.d/firmware/10-ath9k-eeprom    | 162 ++++--------------
 .../etc/hotplug.d/firmware/11-ath10k-caldata  | 159 +++++------------
 .../etc/hotplug.d/firmware/10-rt2x00-eeprom   |  27 +--
 .../etc/hotplug.d/firmware/11-ath10k-caldata  | 139 +++------------
 .../etc/hotplug.d/firmware/11-ath10k-caldata  | 100 ++---------
 .../etc/hotplug.d/firmware/11-ath10k-caldata  |  37 +---
 .../etc/hotplug.d/firmware/12-ath9k-eeprom    | 151 +++-------------
 .../etc/hotplug.d/firmware/10-ath9k-eeprom    |  25 +--
 .../etc/hotplug.d/firmware/10-rt2x00-eeprom   |  48 +-----
 12 files changed, 318 insertions(+), 735 deletions(-)
 create mode 100644 package/base-files/files/lib/functions/caldata.sh

-- 
2.20.1


_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list