mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
uwb: remove unused beacon group join/leave events
The UWB_NOTIF_BG_JOIN/UWB_NOTIF_BG_LEAVE events have been superceeded by the channel_changed callback in struct uwb_pal. Signed-off-by: David Vrabel <[email protected]>
This commit is contained in:
parent
e8e1594c81
commit
0996e63824
2 changed files with 4 additions and 20 deletions
|
|
@ -140,10 +140,8 @@ int uwb_rc_beacon(struct uwb_rc *rc, int channel, unsigned bpst_offset)
|
|||
}
|
||||
}
|
||||
|
||||
if (result >= 0) {
|
||||
if (result >= 0)
|
||||
rc->beaconing = channel;
|
||||
uwb_notify(rc, NULL, uwb_bg_joined(rc) ? UWB_NOTIF_BG_JOIN : UWB_NOTIF_BG_LEAVE);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
@ -581,19 +579,6 @@ error:
|
|||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* uwb_bg_joined - is the RC in a beacon group?
|
||||
* @rc: the radio controller
|
||||
*
|
||||
* Returns true if the radio controller is in a beacon group (even if
|
||||
* it's the sole member).
|
||||
*/
|
||||
int uwb_bg_joined(struct uwb_rc *rc)
|
||||
{
|
||||
return rc->beaconing != -1;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(uwb_bg_joined);
|
||||
|
||||
/*
|
||||
* Print beaconing state.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue