diff options
Diffstat (limited to 'drivers/uwb/beacon.c')
-rw-r--r-- | drivers/uwb/beacon.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/drivers/uwb/beacon.c b/drivers/uwb/beacon.c index 247956098afa..d9c60cb94993 100644 --- a/drivers/uwb/beacon.c +++ b/drivers/uwb/beacon.c | |||
@@ -140,10 +140,8 @@ int uwb_rc_beacon(struct uwb_rc *rc, int channel, unsigned bpst_offset) | |||
140 | } | 140 | } |
141 | } | 141 | } |
142 | 142 | ||
143 | if (result >= 0) { | 143 | if (result >= 0) |
144 | rc->beaconing = channel; | 144 | rc->beaconing = channel; |
145 | uwb_notify(rc, NULL, uwb_bg_joined(rc) ? UWB_NOTIF_BG_JOIN : UWB_NOTIF_BG_LEAVE); | ||
146 | } | ||
147 | return result; | 145 | return result; |
148 | } | 146 | } |
149 | 147 | ||
@@ -581,19 +579,6 @@ error: | |||
581 | return result; | 579 | return result; |
582 | } | 580 | } |
583 | 581 | ||
584 | /** | ||
585 | * uwb_bg_joined - is the RC in a beacon group? | ||
586 | * @rc: the radio controller | ||
587 | * | ||
588 | * Returns true if the radio controller is in a beacon group (even if | ||
589 | * it's the sole member). | ||
590 | */ | ||
591 | int uwb_bg_joined(struct uwb_rc *rc) | ||
592 | { | ||
593 | return rc->beaconing != -1; | ||
594 | } | ||
595 | EXPORT_SYMBOL_GPL(uwb_bg_joined); | ||
596 | |||
597 | /* | 582 | /* |
598 | * Print beaconing state. | 583 | * Print beaconing state. |
599 | */ | 584 | */ |