projects
/
openwrt
/
svn-archive
/
archive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a89c34
)
mac80211: only strip the platform/ prefix from path for pci devices
author
Felix Fietkau
<nbd@openwrt.org>
Thu, 21 Jan 2016 15:55:35 +0000
(15:55 +0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Thu, 21 Jan 2016 15:55:35 +0000
(15:55 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 48440
package/kernel/mac80211/files/lib/wifi/mac80211.sh
patch
|
blob
|
history
diff --git
a/package/kernel/mac80211/files/lib/wifi/mac80211.sh
b/package/kernel/mac80211/files/lib/wifi/mac80211.sh
index 92a9fce74468beb60d67401afef0f4c117079584..06f3b8b449fbf482d42123fd3d21f8c5b0d315bf 100644
(file)
--- a/
package/kernel/mac80211/files/lib/wifi/mac80211.sh
+++ b/
package/kernel/mac80211/files/lib/wifi/mac80211.sh
@@
-101,7
+101,9
@@
detect_mac80211() {
fi
if [ -n "$path" ]; then
path="${path##/sys/devices/}"
- path="${path##platform/}"
+ case "$path" in
+ platform*/pci*) path="${path##platform/}";;
+ esac
dev_id=" option path '$path'"
else
dev_id=" option macaddr $(cat /sys/class/ieee80211/${dev}/macaddress)"