mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-11-02 03:17:48 +00:00
This series is based on * 2020-07-10 ipq6018-ilq-11-0_qca_oem-034672b0676c37b1f4519e5720e18e95fe6236ef Add support for * qsdk kernel/v4.4 * qsdk ethernet subsystem * v5.7 ath11k backport + QualComm staging patches (wlan_ap_1.0) * ath11k-firmware * hostapd/iw/... Feature support * full boot, system detection * sysupgrade to nand * HE support via latest hostapd * driver support for usb, crypto, hwmon, cpufreq, ... Missing * NSS/HW flow offloading - FW blob is not redistributable Using the qsdk v4.4 is an intermediate solution while the vanilla is being tested. Vanilla kernel is almost on feature par. Work has already started to upstream the ethernet and switch drivers. Once complete the target will be fully upstream. Signed-off-by: John Crispin <john@phrozen.org>
37 lines
692 B
Bash
37 lines
692 B
Bash
mac80211_phy_to_path() {
|
|
local phy="$1"
|
|
|
|
[ -x /usr/bin/readlink -a -h /sys/class/ieee80211/${phy} ] || return
|
|
|
|
local path="$(readlink -f /sys/class/ieee80211/${phy}/device)"
|
|
[ -n "$path" ] || return
|
|
|
|
path="${path##/sys/devices/}"
|
|
case "$path" in
|
|
platform*/pci*) path="${path##platform/}";;
|
|
esac
|
|
|
|
local p
|
|
local seq=""
|
|
for p in $(ls /sys/class/ieee80211/$phy/device/ieee80211); do
|
|
[ "$p" = "$phy" ] && {
|
|
echo "$path${seq:++$seq}"
|
|
break
|
|
}
|
|
|
|
seq=$((${seq:-0} + 1))
|
|
done
|
|
}
|
|
|
|
mac80211_path_to_phy() {
|
|
local path="$1"
|
|
|
|
local p
|
|
for p in $(ls /sys/class/ieee80211); do
|
|
local cur="$(mac80211_phy_to_path "$p")"
|
|
case "$cur" in
|
|
*$path) echo "$p"; return;;
|
|
esac
|
|
done
|
|
}
|