[PATCH 10/10] fakehard: use START-CONFIRM primitive to report START failure

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Dmitry Eremin-Solenikov
Date: Friday, August 7, 2009 - 5:58 am

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
---
 drivers/ieee802154/fakehard.c |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/drivers/ieee802154/fakehard.c b/drivers/ieee802154/fakehard.c
index 8a52e6e..2bc6c0c 100644
--- a/drivers/ieee802154/fakehard.c
+++ b/drivers/ieee802154/fakehard.c
@@ -177,18 +177,14 @@ static int fake_disassoc_req(struct net_device *dev,
  *
  * Note: This is in section 7.5.2.3 of the IEEE 802.15.4-2006
  * document, with 7.3.8 describing coordinator realignment.
- *
- * Note: There is currently no way to notify the coordinator userland
- * program of whether or not the PAN has started successfully. As
- * such, the coordinator program cannot know when the MAC has
- * completed starting the network and will simply have to assume
- * completeness based on some form of time delay.
  */
 static int fake_start_req(struct net_device *dev, struct ieee802154_addr *addr,
 				u8 channel,
 				u8 bcn_ord, u8 sf_ord, u8 pan_coord, u8 blx,
 				u8 coord_realign)
 {
+	/* We don't emulate beacons here at all, so START should fail */
+	ieee802154_nl_start_confirm(dev, IEEE802154_INVALID_PARAMETER);
 	return 0;
 }
 
-- 
1.6.3.3

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 03/10] nl802154: make ieee802154_policy constant, Dmitry Eremin-Solenikov, (Fri Aug 7, 5:58 am)
[PATCH 04/10] documentation: fix wrt. headers rename, Dmitry Eremin-Solenikov, (Fri Aug 7, 5:58 am)
[PATCH 05/10] nl802154: add support for dumping WPAN inter ..., Dmitry Eremin-Solenikov, (Fri Aug 7, 5:58 am)
[PATCH 06/10] af_ieee802154: provide dummy get/setsockopt, Dmitry Eremin-Solenikov, (Fri Aug 7, 5:58 am)
[PATCH 07/10] af_ieee802154: minor cleanup in dgram_bind, Dmitry Eremin-Solenikov, (Fri Aug 7, 5:58 am)
[PATCH 08/10] af_ieee802154: add support for WANT_ACK sock ..., Dmitry Eremin-Solenikov, (Fri Aug 7, 5:58 am)
[PATCH 09/10] nl802154: support START-CONFIRM primitive, Dmitry Eremin-Solenikov, (Fri Aug 7, 5:58 am)
[PATCH 10/10] fakehard: use START-CONFIRM primitive to rep ..., Dmitry Eremin-Solenikov, (Fri Aug 7, 5:58 am)