forked from rmandrad/openwrt
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from openwrt/main
Sync main branch with upstream openwrt/openwrt@main
- Loading branch information
Showing
38 changed files
with
587 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
LINUX_VERSION-6.6 = .52 | ||
LINUX_KERNEL_HASH-6.6.52 = 1591ab348399d4aa53121158525056a69c8cf0fe0e90935b0095e9a58e37b4b8 | ||
LINUX_VERSION-6.6 = .53 | ||
LINUX_KERNEL_HASH-6.6.53 = 285d181d1b252b0bf905f040d094215cf183ac98c31a17f9cce9f3537ef4d779 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
. /usr/share/libubox/jshn.sh | ||
|
||
json_init | ||
json_load "$(cat /etc/board.json)" | ||
|
||
json_select credentials | ||
json_get_vars root_password_hash root_password_hash | ||
[ -z "$root_password_hash" ] || sed -i "s|^root:[^:]*|root:$root_password_hash|g" /etc/shadow | ||
|
||
json_get_vars root_password_plain root_password_plain | ||
[ -z "$root_password_plain" ] || { (echo "$root_password_plain"; sleep 1; echo "$root_password_plain") | passwd root } | ||
json_select .. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
. /lib/functions/uci-defaults.sh | ||
|
||
fw_loadenv | ||
|
||
board_config_update | ||
|
||
[ -f /var/run/uboot-env/owrt_ssid -a -f /var/run/uboot-env/owrt_wifi_key ] && | ||
ucidef_set_wireless all "$(cat /var/run/uboot-env/owrt_ssid)" sae-mixed "$(cat /var/run/uboot-env/owrt_wifi_key)" | ||
[ -f /var/run/uboot-env/owrt_country ] && ucidef_set_country "$(cat /var/run/uboot-env/owrt_country)" | ||
[ -f /var/run/uboot-env/owrt_ssh_auth_key ] && ucidef_set_ssh_authorized_key "$(cat /var/run/uboot-env/owrt_ssh_auth_key)" | ||
[ -f /var/run/uboot-env/owrt_root_password_plain ] && ucidef_set_root_password_plain "$(cat /var/run/uboot-env/owrt_root_password_plain)" | ||
[ -f /var/run/uboot-env/owrt_root_password_hash ] && ucidef_set_root_password_hash "$(cat /var/run/uboot-env/owrt_root_password_hash)" | ||
[ -f /var/run/uboot-env/owrt_timezone ] && ucidef_set_timezone "$(cat /var/run/uboot-env/owrt_timezone)" | ||
|
||
board_config_flush | ||
|
||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/usr/bin/ucode | ||
|
||
'use strict'; | ||
|
||
const path = '/var/run/uboot-env/'; | ||
|
||
import * as fs from 'fs'; | ||
|
||
if (fs.lsdir(path)) { | ||
warn(`env has already been loaded to ${path}\n`); | ||
exit(0); | ||
} | ||
|
||
let fp = fs.popen('fw_printenv'); | ||
let raw = fp.read('all'); | ||
fp.close(); | ||
|
||
if (!length(raw)) | ||
exit(0); | ||
|
||
fs.mkdir(path); | ||
for (let line in split(raw, '\n')) { | ||
let vals = split(line, '='); | ||
if (vals[0] && vals[1]) | ||
fs.writefile(path + vals[0], vals[1]); | ||
} |
24 changes: 24 additions & 0 deletions
24
...el/mac80211/patches/subsys/321-wifi-mac80211-do-not-pass-a-stopped-vif-to-the-drive.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
From: Felix Fietkau <nbd@nbd.name> | ||
Date: Wed, 2 Oct 2024 11:45:35 +0200 | ||
Subject: [PATCH] wifi: mac80211: do not pass a stopped vif to the driver in | ||
.get_txpower | ||
|
||
Avoid potentially crashing in the driver because of uninitialized private data | ||
|
||
Fixes: 5b3dc42b1b0d ("mac80211: add support for driver tx power reporting") | ||
Cc: stable@vger.kernel.org | ||
Signed-off-by: Felix Fietkau <nbd@nbd.name> | ||
--- | ||
|
||
--- a/net/mac80211/cfg.c | ||
+++ b/net/mac80211/cfg.c | ||
@@ -3134,7 +3134,8 @@ static int ieee80211_get_tx_power(struct | ||
struct ieee80211_local *local = wiphy_priv(wiphy); | ||
struct ieee80211_sub_if_data *sdata = IEEE80211_WDEV_TO_SUB_IF(wdev); | ||
|
||
- if (local->ops->get_txpower) | ||
+ if (local->ops->get_txpower && | ||
+ (sdata->flags & IEEE80211_SDATA_IN_DRIVER)) | ||
return drv_get_txpower(local, sdata, dbm); | ||
|
||
if (local->emulate_chanctx) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.