Skip to contentSkip to conversation

treewide: replace wireless with wpan

PATCH In review Alexander Aring 2 participants 3 messages Jun 5, 2015 IEEE 802.15.4

lore
Share & tools
lore

Alexander Aring

author maintainer
#0 lore raw

PATCH 1/1 treewide: replace wireless with wpan

This patch replaced several wireless string with wpan. This behaviour was simpled copied from wireless iw tool and it hasn't been renamed to wpan.

---
 src/info.c      | 4 ++--
 src/interface.c | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
src/info.c +2 -2
index 2434bef..8afeeb7 100644
@@ -459,7 +459,7 @@ static int handle_info(struct nl802154_state *state,
 }
 
 __COMMAND(NULL, info, "info", NULL, NL802154_CMD_GET_WPAN_PHY, 0, 0, CIB_PHY, handle_info,
-	  "Show capabilities for the specified wireless device.", NULL);
+	  "Show capabilities for the specified wpan device.", NULL);
 TOPLEVEL(list, NULL, NL802154_CMD_GET_WPAN_PHY, NLM_F_DUMP, CIB_NONE, handle_info,
-	 "List all wireless devices and their capabilities.");
+	 "List all wpan devices and their capabilities.");
 TOPLEVEL(phy, NULL, NL802154_CMD_GET_WPAN_PHY, NLM_F_DUMP, CIB_NONE, handle_info, NULL);
src/interface.c +1 -1
index 647247b..c67077b 100644
@@ -252,4 +252,4 @@ static int handle_dev_dump(struct nl802154_state *state,
 	return 0;
 }
 TOPLEVEL(dev, NULL, NL802154_CMD_GET_INTERFACE, NLM_F_DUMP, CIB_NONE, handle_dev_dump,
-	 "List all network interfaces for wireless hardware.");
+	 "List all network interfaces for wpan hardware.");
Signature · 1 line
2.4.1
#1 lore raw

Hi,

Quoted 29 lines · Alexander Aring

This patch replaced several wireless string with wpan. This behaviour was simpled copied from wireless iw tool and it hasn't been renamed to wpan.

---
  src/info.c      | 4 ++--
  src/interface.c | 2 +-
  2 files changed, 3 insertions(+), 3 deletions(-)
src/info.c +2 -2
index 2434bef..8afeeb7 100644
@@ -459,7 +459,7 @@ static int handle_info(struct nl802154_state *state,
  }
 
  __COMMAND(NULL, info, "info", NULL, NL802154_CMD_GET_WPAN_PHY, 0, 0, CIB_PHY, handle_info,
-	  "Show capabilities for the specified wireless device.", NULL);
+	  "Show capabilities for the specified wpan device.", NULL);
  TOPLEVEL(list, NULL, NL802154_CMD_GET_WPAN_PHY, NLM_F_DUMP, CIB_NONE, handle_info,
-	 "List all wireless devices and their capabilities.");
+	 "List all wpan devices and their capabilities.");
  TOPLEVEL(phy, NULL, NL802154_CMD_GET_WPAN_PHY, NLM_F_DUMP, CIB_NONE, handle_info, NULL);
src/interface.c +0 -0
index 647247b..c67077b 100644

src/interface.c static int handle_dev_dump(struct nl802154_state *state, · line 255

Quoted 5 lines
src/interface.c +1 -1
@@ -252,4 +252,4 @@ static int handle_dev_dump(struct nl802154_state *state,
  	return 0;
  }
  TOPLEVEL(dev, NULL, NL802154_CMD_GET_INTERFACE, NLM_F_DUMP, CIB_NONE, handle_dev_dump,
-	 "List all network interfaces for wireless hardware.");
+	 "List all network interfaces for wpan hardware.");

We also have some typo in usage:

root@beaglebone:~# iwpan help
Usage:	iwpan [options] command
Options:
	--debug		enable netlink debugging
	--version	show version (0.4)
Commands:
	phy <phyname> set channel <page> <channel>
	phy <phyname> set tx_power <dBm>
	phy <phyname> set cca_mode <mode|3 <1|0>>
	phy <phyname> set cca_ed_level <level>
	dev <devname> set pan_id <pan_id>
	dev <devname> set short_addr <short_addr>
	dev <devname> set max_frame_retries <retries>
	dev <devname> set backoff_exponents <min_be> <max_be>
	dev <devname> set max_csma_backoffs <backoffs>
	dev <devname> set lbt <1|0>
...
Commands that use the netdev ('dev') can also be given the
'wdev' instead to identify the device.
...

Here it should be *wpan_dev*. And *iwpan* is not supporting this command.

I used some thing like this:

root@beaglebone:~# iwpan wdev wpan0 info
Usage:	iwpan [options] command
Options:
	--debug		enable netlink debugging
	--version	show version (0.4)
Commands:
	phy <phyname> set channel <page> <channel>
	phy <phyname> set tx_power <dBm>
	phy <phyname> set cca_mode <mode|3 <1|0>>
	phy <phyname> set cca_ed_level <level>
...

Thanks.

Signature · 1 line
Varka Bhadram
author maintainer
#2 lore raw
Quoted 31 lines · Varka Bhadram

Hi,

Quoted 27 lines · Alexander Aring

This patch replaced several wireless string with wpan. This behaviour was simpled copied from wireless iw tool and it hasn't been renamed to wpan.

---
 src/info.c      | 4 ++--
 src/interface.c | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
src/info.c +2 -2
index 2434bef..8afeeb7 100644
@@ -459,7 +459,7 @@ static int handle_info(struct nl802154_state *state,
 }
 __COMMAND(NULL, info, "info", NULL, NL802154_CMD_GET_WPAN_PHY, 0, 0, CIB_PHY, handle_info,
-	  "Show capabilities for the specified wireless device.", NULL);
+	  "Show capabilities for the specified wpan device.", NULL);
 TOPLEVEL(list, NULL, NL802154_CMD_GET_WPAN_PHY, NLM_F_DUMP, CIB_NONE, handle_info,
-	 "List all wireless devices and their capabilities.");
+	 "List all wpan devices and their capabilities.");
 TOPLEVEL(phy, NULL, NL802154_CMD_GET_WPAN_PHY, NLM_F_DUMP, CIB_NONE, handle_info, NULL);
src/interface.c +0 -0
index 647247b..c67077b 100644
Quoted 9 lines

src/interface.c static int handle_dev_dump(struct nl802154_state *state, · line 255

Quoted 6 lines
src/interface.c +1 -1
@@ -252,4 +252,4 @@ static int handle_dev_dump(struct nl802154_state *state,
 	return 0;
 }
 TOPLEVEL(dev, NULL, NL802154_CMD_GET_INTERFACE, NLM_F_DUMP, CIB_NONE, handle_dev_dump,
-	 "List all network interfaces for wireless hardware.");
+	 "List all network interfaces for wpan hardware.");

We also have some typo in usage:

send patches. :-)

- Alex