iw: Refresh patches

SVN-Revision: 25135
This commit is contained in:
Vasilis Tsiligiannis 2011-01-27 08:56:14 +00:00
parent 57355faae1
commit 2ac7f2cab4
4 changed files with 8 additions and 20 deletions

View file

@ -7,11 +7,9 @@ Signed-off-by: Bruno Randolf <br1@einfach.org>
station.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/station.c b/station.c
index 8cf038d..7639553 100644
--- a/station.c
+++ b/station.c
@@ -48,6 +48,8 @@ static int print_sta_handler(struct nl_msg *msg, void *arg)
@@ -48,6 +48,8 @@ static int print_sta_handler(struct nl_m
[NL80211_STA_INFO_LLID] = { .type = NLA_U16 },
[NL80211_STA_INFO_PLID] = { .type = NLA_U16 },
[NL80211_STA_INFO_PLINK_STATE] = { .type = NLA_U8 },
@ -20,7 +18,7 @@ index 8cf038d..7639553 100644
};
static struct nla_policy rate_policy[NL80211_RATE_INFO_MAX + 1] = {
@@ -96,6 +98,12 @@ static int print_sta_handler(struct nl_msg *msg, void *arg)
@@ -96,6 +98,12 @@ static int print_sta_handler(struct nl_m
if (sinfo[NL80211_STA_INFO_TX_PACKETS])
printf("\n\ttx packets:\t%u",
nla_get_u32(sinfo[NL80211_STA_INFO_TX_PACKETS]));

View file

@ -15,11 +15,9 @@ v8: Simplfied option parser as requested.
phy.c | 39 +++++++++++++++++++++++++++++++++++++++
2 files changed, 46 insertions(+), 0 deletions(-)
diff --git a/info.c b/info.c
index ce85514..75cadf0 100644
--- a/info.c
+++ b/info.c
@@ -168,6 +168,13 @@ static int print_phy_handler(struct nl_msg *msg, void *arg)
@@ -168,6 +168,13 @@ static int print_phy_handler(struct nl_m
printf("\tCoverage class: %d (up to %dm)\n", coverage, 450 * coverage);
}
@ -33,11 +31,9 @@ index ce85514..75cadf0 100644
if (tb_msg[NL80211_ATTR_SUPPORTED_IFTYPES]) {
printf("\tSupported interface modes:\n");
nla_for_each_nested(nl_mode, tb_msg[NL80211_ATTR_SUPPORTED_IFTYPES], rem_mode)
diff --git a/phy.c b/phy.c
index 7c6c7c8..e3bd4e8 100644
--- a/phy.c
+++ b/phy.c
@@ -307,3 +307,51 @@ COMMAND(set, txpower, "<auto|fixed|limit> [<tx power in mBm>]",
@@ -307,3 +307,51 @@ COMMAND(set, txpower, "<auto|fixed|limit
COMMAND(set, txpower, "<auto|fixed|limit> [<tx power in mBm>]",
NL80211_CMD_SET_WIPHY, 0, CIB_NETDEV, handle_txpower,
"Specify transmit power level and setting type.");

View file

@ -8,11 +8,9 @@ From: Bruno Randolf <br1@einfach.org>
station.c | 3 +++
2 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/nl80211.h b/nl80211.h
index 276fec0..9da840d 100644
--- a/nl80211.h
+++ b/nl80211.h
@@ -1179,6 +1179,7 @@ enum nl80211_sta_info {
@@ -1183,6 +1183,7 @@ enum nl80211_sta_info {
NL80211_STA_INFO_TX_PACKETS,
NL80211_STA_INFO_TX_RETRIES,
NL80211_STA_INFO_TX_FAILED,
@ -20,11 +18,9 @@ index 276fec0..9da840d 100644
/* keep last */
__NL80211_STA_INFO_AFTER_LAST,
diff --git a/station.c b/station.c
index 7639553..20f4ad4 100644
--- a/station.c
+++ b/station.c
@@ -107,6 +107,9 @@ static int print_sta_handler(struct nl_msg *msg, void *arg)
@@ -107,6 +107,9 @@ static int print_sta_handler(struct nl_m
if (sinfo[NL80211_STA_INFO_SIGNAL])
printf("\n\tsignal: \t%d dBm",
(int8_t)nla_get_u8(sinfo[NL80211_STA_INFO_SIGNAL]));

View file

@ -9,11 +9,9 @@ Signed-off-by: Bruno Randolf <br1@einfach.org>
ibss.c | 19 ++++++++++++++++---
1 files changed, 16 insertions(+), 3 deletions(-)
diff --git a/ibss.c b/ibss.c
index ed2c73a..9c9c133 100644
--- a/ibss.c
+++ b/ibss.c
@@ -26,6 +26,7 @@ static int join_ibss(struct nl80211_state *state,
@@ -26,6 +26,7 @@ static int join_ibss(struct nl80211_stat
int n_rates = 0;
char *value = NULL, *sptr = NULL;
float rate;
@ -21,7 +19,7 @@ index ed2c73a..9c9c133 100644
if (argc < 2)
return 1;
@@ -57,6 +58,17 @@ static int join_ibss(struct nl80211_state *state,
@@ -57,6 +58,17 @@ static int join_ibss(struct nl80211_stat
}
}