summaryrefslogtreecommitdiffstats
path: root/drivers/uwb/beacon.c
diff options
context:
space:
mode:
authorThomas Pugliese <thomas.pugliese@gmail.com>2014-04-25 17:30:33 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-05-27 23:56:54 +0200
commit7b360ee09a8bec5783cbecdcb17cd8d70edadf56 (patch)
tree1f0e15c0e2e5e5c7b3ce1ce6fbebe5f1bde7b24c /drivers/uwb/beacon.c
parentuwb: fix channel change failure (diff)
downloadlinux-7b360ee09a8bec5783cbecdcb17cd8d70edadf56.tar.xz
linux-7b360ee09a8bec5783cbecdcb17cd8d70edadf56.zip
uwb: add error messages when reservation establish fails
Add better error messages during the channel change/reservation establish process. Signed-off-by: Thomas Pugliese <thomas.pugliese@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/uwb/beacon.c')
-rw-r--r--drivers/uwb/beacon.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/uwb/beacon.c b/drivers/uwb/beacon.c
index 57b5ff61020c..b476187adf55 100644
--- a/drivers/uwb/beacon.c
+++ b/drivers/uwb/beacon.c
@@ -125,8 +125,10 @@ int uwb_rc_beacon(struct uwb_rc *rc, int channel, unsigned bpst_offset)
else {
/* channel >= 0...dah */
result = uwb_rc_start_beacon(rc, bpst_offset, channel);
- if (result < 0)
+ if (result < 0) {
+ dev_err(dev, "Cannot start beaconing: %d\n", result);
return result;
+ }
if (le16_to_cpu(rc->ies->wIELength) > 0) {
result = uwb_rc_set_ie(rc, rc->ies);
if (result < 0) {