18 #include <linux/kernel.h>
20 #include <linux/export.h>
25 static int uwb_radio_select_channel(
struct uwb_rc *
rc)
42 static void uwb_radio_channel_changed(
struct uwb_rc *rc,
int channel)
62 static int uwb_radio_change_channel(
struct uwb_rc *rc,
int channel)
67 uwb_radio_channel_changed(rc, channel);
70 if (rc->
beaconing != -1 && channel != -1) {
75 ret = uwb_radio_change_channel(rc, -1);
83 uwb_radio_channel_changed(rc, rc->
beaconing);
105 ret = uwb_radio_change_channel(rc, uwb_radio_select_channel(rc));
127 uwb_radio_change_channel(rc, uwb_radio_select_channel(rc));
148 ret = uwb_radio_change_channel(rc, uwb_radio_select_channel(rc));