Skip to content
Snippets Groups Projects
Select Git revision
  • 17bc6228929b38356d4209af64f807432daf713b
  • experimental
  • master
  • v2021.1.2-ffs
  • v2021.1.1-ffs
  • nrb/gluon-master-cpe510
  • v2021.1-ffs
  • v2020.2.3-ffs
  • nrbffs/fastd-remove-delay
  • v2020.2.2-ffs
  • v2020.2.1-ffs
  • v2020.2-ffs
  • v2020.2.x
  • v2020.1.3-ffs
  • v2020.1.1-ffs
  • v2020.1-ffs
  • v2019.1.2-ffs
  • v2019.1.1-ffs
  • nrb/test-radv-filter
  • v2019.1-ffs
  • nrbffs/netgear-ex6120
  • v2021.1.2-ffs0.2
  • v2021.1.2-ffs0.1
  • v2021.1.1-ffs0.4
  • v2021.1.1-ffs0.3
  • v2021.1.1-ffs0.2
  • v2021.1.1-ffs0.1
  • v2021.1-ffs0.1
  • v2020.2.3-ffs0.3
  • v2020.2.3-ffs0.2
  • v2020.2.3-ffs0.1
  • v2020.2.2-ffs0.1
  • v2020.2.1-ffs0.1
  • v2020.2-ffs0.1
  • v2020.2
  • v2020.2.x-ffs0.1
  • v2020.1.3-ffs0.1
  • v2020.1.1-ffs0.1
  • v2020.1-ffs0.1
  • v2019.1.2-ffs0.1
  • v2019.1.1-ffs0.1
41 results

test_respondd.py

Blame
  • Forked from firmware / FFS Gluon
    Source project has a limited visibility.
    0006-ramips-add-MT7621-WiFi-devpath-migration.patch 1.45 KiB
    From: David Bauer <mail@david-bauer.net>
    Date: Sat, 18 Jun 2022 02:37:56 +0200
    Subject: ramips: add MT7621 WiFi devpath migration
    
    Add a migration script to migrate the device path of PCIe WiFi hardware
    from OpenWrt 19.07 to the one used with OpenWrt 21.02+.
    
    Signed-off-by: David Bauer <mail@david-bauer.net>
    
    diff --git a/target/linux/ramips/mt7621/base-files/etc/hotplug.d/ieee80211/00-wifi-migration b/target/linux/ramips/mt7621/base-files/etc/hotplug.d/ieee80211/00-wifi-migration
    new file mode 100644
    index 0000000000000000000000000000000000000000..17fd4a58ff2d56694743e149292746c136b6f27a
    --- /dev/null
    +++ b/target/linux/ramips/mt7621/base-files/etc/hotplug.d/ieee80211/00-wifi-migration
    @@ -0,0 +1,38 @@
    +#!/bin/sh
    +
    +# Migrate WiFi path from 19.07 to 21.02+
    +
    +WIFI_PATH_CHANGED=0
    +
    +. /lib/functions.sh
    +
    +migrate_wifi_path() {
    +	local section="$1"
    +	local path
    +
    +	config_get path ${section} path
    +	case ${path} in
    +		"pci0000:00/0000:00:00.0/0000:01:00.0")
    +			path="1e140000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0"
    +			WIFI_PATH_CHANGED=1
    +		;;
    +		"pci0000:00/0000:00:01.0/0000:02:00.0")
    +			path="1e140000.pcie/pci0000:00/0000:00:01.0/0000:02:00.0"
    +			WIFI_PATH_CHANGED=1
    +		;;
    +		*)
    +			return 0
    +		;;
    +	esac
    +
    +	uci set wireless.${section}.path=${path}
    +}
    +
    +[ "${ACTION}" = "add" ] && {
    +	[ ! -e /etc/config/wireless ] && return 0
    +
    +	config_load wireless
    +	config_foreach migrate_wifi_path wifi-device
    +
    +	[ "${WIFI_PATH_CHANGED}" = "1" ] && uci commit wireless
    +}