X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/d20afc8d2254c64f5638757c535ee8cf8f1f5da7..fc052689d08c5bab3364353f5e9c0e4348ef5657:/target/linux/generic-2.6/patches/903-hostap_txpower.patch diff --git a/target/linux/generic-2.6/patches/903-hostap_txpower.patch b/target/linux/generic-2.6/patches/903-hostap_txpower.patch index 6f82cdb03..474fbeea0 100644 --- a/target/linux/generic-2.6/patches/903-hostap_txpower.patch +++ b/target/linux/generic-2.6/patches/903-hostap_txpower.patch @@ -1,7 +1,8 @@ -diff -Nur linux-2.6.17/drivers/net/wireless/hostap/hostap_ap.c linux-2.6.17-patched/drivers/net/wireless/hostap/hostap_ap.c ---- linux-2.6.17/drivers/net/wireless/hostap/hostap_ap.c 2006-06-18 04:49:35.000000000 +0300 -+++ linux-2.6.17-patched/drivers/net/wireless/hostap/hostap_ap.c 2006-12-10 19:13:33.000000000 +0200 -@@ -2345,13 +2345,13 @@ +Index: linux-2.6.21.7/drivers/net/wireless/hostap/hostap_ap.c +=================================================================== +--- linux-2.6.21.7.orig/drivers/net/wireless/hostap/hostap_ap.c ++++ linux-2.6.21.7/drivers/net/wireless/hostap/hostap_ap.c +@@ -2346,13 +2346,13 @@ int prism2_ap_get_sta_qual(local_info_t addr[count].sa_family = ARPHRD_ETHER; memcpy(addr[count].sa_data, sta->addr, ETH_ALEN); if (sta->last_rx_silence == 0) @@ -21,7 +22,7 @@ diff -Nur linux-2.6.17/drivers/net/wireless/hostap/hostap_ap.c linux-2.6.17-patc qual[count].updated = sta->last_rx_updated; sta->last_rx_updated = IW_QUAL_DBM; -@@ -2416,13 +2416,13 @@ +@@ -2417,13 +2417,13 @@ int prism2_ap_translate_scan(struct net_ memset(&iwe, 0, sizeof(iwe)); iwe.cmd = IWEVQUAL; if (sta->last_rx_silence == 0) @@ -41,9 +42,10 @@ diff -Nur linux-2.6.17/drivers/net/wireless/hostap/hostap_ap.c linux-2.6.17-patc iwe.u.qual.updated = sta->last_rx_updated; iwe.len = IW_EV_QUAL_LEN; current_ev = iwe_stream_add_event(current_ev, end_buf, &iwe, -diff -Nur linux-2.6.17/drivers/net/wireless/hostap/hostap_config.h linux-2.6.17-patched/drivers/net/wireless/hostap/hostap_config.h ---- linux-2.6.17/drivers/net/wireless/hostap/hostap_config.h 2006-06-18 04:49:35.000000000 +0300 -+++ linux-2.6.17-patched/drivers/net/wireless/hostap/hostap_config.h 2006-12-10 19:13:33.000000000 +0200 +Index: linux-2.6.21.7/drivers/net/wireless/hostap/hostap_config.h +=================================================================== +--- linux-2.6.21.7.orig/drivers/net/wireless/hostap/hostap_config.h ++++ linux-2.6.21.7/drivers/net/wireless/hostap/hostap_config.h @@ -47,4 +47,9 @@ */ /* #define PRISM2_NO_STATION_MODES */ @@ -54,32 +56,35 @@ diff -Nur linux-2.6.17/drivers/net/wireless/hostap/hostap_config.h linux-2.6.17- +#define RAW_TXPOWER_SETTING + #endif /* HOSTAP_CONFIG_H */ -diff -Nur linux-2.6.17/drivers/net/wireless/hostap/hostap.h linux-2.6.17-patched/drivers/net/wireless/hostap/hostap.h ---- linux-2.6.17/drivers/net/wireless/hostap/hostap.h 2006-06-18 04:49:35.000000000 +0300 -+++ linux-2.6.17-patched/drivers/net/wireless/hostap/hostap.h 2006-12-10 19:20:00.000000000 +0200 -@@ -89,6 +89,7 @@ - extern struct ethtool_ops prism2_ethtool_ops; +Index: linux-2.6.21.7/drivers/net/wireless/hostap/hostap.h +=================================================================== +--- linux-2.6.21.7.orig/drivers/net/wireless/hostap/hostap.h ++++ linux-2.6.21.7/drivers/net/wireless/hostap/hostap.h +@@ -90,6 +90,7 @@ extern const struct iw_handler_def hosta + extern const struct ethtool_ops prism2_ethtool_ops; int hostap_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd); +int hostap_restore_power(struct net_device *dev); #endif /* HOSTAP_H */ -diff -Nur linux-2.6.17/drivers/net/wireless/hostap/hostap_hw.c linux-2.6.17-patched/drivers/net/wireless/hostap/hostap_hw.c ---- linux-2.6.17/drivers/net/wireless/hostap/hostap_hw.c 2006-06-18 04:49:35.000000000 +0300 -+++ linux-2.6.17-patched/drivers/net/wireless/hostap/hostap_hw.c 2006-12-10 19:13:33.000000000 +0200 -@@ -1043,6 +1043,7 @@ - dev->name, local->fragm_threshold); +Index: linux-2.6.21.7/drivers/net/wireless/hostap/hostap_hw.c +=================================================================== +--- linux-2.6.21.7.orig/drivers/net/wireless/hostap/hostap_hw.c ++++ linux-2.6.21.7/drivers/net/wireless/hostap/hostap_hw.c +@@ -933,6 +933,7 @@ static int hfa384x_set_rid(struct net_de + prism2_hw_reset(dev); } + hostap_restore_power(dev); return res; } -diff -Nur linux-2.6.17/drivers/net/wireless/hostap/hostap_info.c linux-2.6.17-patched/drivers/net/wireless/hostap/hostap_info.c ---- linux-2.6.17/drivers/net/wireless/hostap/hostap_info.c 2006-06-18 04:49:35.000000000 +0300 -+++ linux-2.6.17-patched/drivers/net/wireless/hostap/hostap_info.c 2006-12-10 19:13:33.000000000 +0200 -@@ -429,6 +429,11 @@ +Index: linux-2.6.21.7/drivers/net/wireless/hostap/hostap_info.c +=================================================================== +--- linux-2.6.21.7.orig/drivers/net/wireless/hostap/hostap_info.c ++++ linux-2.6.21.7/drivers/net/wireless/hostap/hostap_info.c +@@ -428,6 +428,11 @@ static void handle_info_queue_linkstatus } /* Get BSSID if we have a valid AP address */ @@ -91,10 +96,11 @@ diff -Nur linux-2.6.17/drivers/net/wireless/hostap/hostap_info.c linux-2.6.17-pa if (connected) { netif_carrier_on(local->dev); netif_carrier_on(local->ddev); -diff -Nur linux-2.6.17/drivers/net/wireless/hostap/hostap_ioctl.c linux-2.6.17-patched/drivers/net/wireless/hostap/hostap_ioctl.c ---- linux-2.6.17/drivers/net/wireless/hostap/hostap_ioctl.c 2006-06-18 04:49:35.000000000 +0300 -+++ linux-2.6.17-patched/drivers/net/wireless/hostap/hostap_ioctl.c 2006-12-10 21:21:03.000000000 +0200 -@@ -1506,23 +1506,20 @@ +Index: linux-2.6.21.7/drivers/net/wireless/hostap/hostap_ioctl.c +=================================================================== +--- linux-2.6.21.7.orig/drivers/net/wireless/hostap/hostap_ioctl.c ++++ linux-2.6.21.7/drivers/net/wireless/hostap/hostap_ioctl.c +@@ -1504,23 +1504,20 @@ static int prism2_txpower_hfa386x_to_dBm val = 255; tmp = val; @@ -122,7 +128,7 @@ diff -Nur linux-2.6.17/drivers/net/wireless/hostap/hostap_ioctl.c linux-2.6.17-p return (unsigned char) tmp; } -@@ -4086,3 +4083,35 @@ +@@ -4080,3 +4077,35 @@ int hostap_ioctl(struct net_device *dev, return ret; }