diff options
author | Dmitry Baryshkov <dbaryshkov@gmail.com> | 2009-08-06 22:58:45 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-08-13 00:54:52 -0400 |
commit | 798c752b815bd80653dc48b6ffb8eb68ede15a66 (patch) | |
tree | a83ca7905c3622b88cc86f8fc52e256cc527f816 /drivers | |
parent | acb8aacda3f0bc3aeb652f4365c078a2b0adb0bf (diff) |
fakehard: use START-CONFIRM primitive to report START failure
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | 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 c94d2c24c352..262536fae905 100644 --- a/drivers/ieee802154/fakehard.c +++ b/drivers/ieee802154/fakehard.c | |||
@@ -177,18 +177,14 @@ static int fake_disassoc_req(struct net_device *dev, | |||
177 | * | 177 | * |
178 | * Note: This is in section 7.5.2.3 of the IEEE 802.15.4-2006 | 178 | * Note: This is in section 7.5.2.3 of the IEEE 802.15.4-2006 |
179 | * document, with 7.3.8 describing coordinator realignment. | 179 | * document, with 7.3.8 describing coordinator realignment. |
180 | * | ||
181 | * Note: There is currently no way to notify the coordinator userland | ||
182 | * program of whether or not the PAN has started successfully. As | ||
183 | * such, the coordinator program cannot know when the MAC has | ||
184 | * completed starting the network and will simply have to assume | ||
185 | * completeness based on some form of time delay. | ||
186 | */ | 180 | */ |
187 | static int fake_start_req(struct net_device *dev, struct ieee802154_addr *addr, | 181 | static int fake_start_req(struct net_device *dev, struct ieee802154_addr *addr, |
188 | u8 channel, | 182 | u8 channel, |
189 | u8 bcn_ord, u8 sf_ord, u8 pan_coord, u8 blx, | 183 | u8 bcn_ord, u8 sf_ord, u8 pan_coord, u8 blx, |
190 | u8 coord_realign) | 184 | u8 coord_realign) |
191 | { | 185 | { |
186 | /* We don't emulate beacons here at all, so START should fail */ | ||
187 | ieee802154_nl_start_confirm(dev, IEEE802154_INVALID_PARAMETER); | ||
192 | return 0; | 188 | return 0; |
193 | } | 189 | } |
194 | 190 | ||