diff options
Diffstat (limited to 'drivers/uwb/lc-rc.c')
-rw-r--r-- | drivers/uwb/lc-rc.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/drivers/uwb/lc-rc.c b/drivers/uwb/lc-rc.c index f00633d334dd..9cf21e6bb624 100644 --- a/drivers/uwb/lc-rc.c +++ b/drivers/uwb/lc-rc.c | |||
@@ -189,9 +189,9 @@ static int uwb_rc_setup(struct uwb_rc *rc) | |||
189 | int result; | 189 | int result; |
190 | struct device *dev = &rc->uwb_dev.dev; | 190 | struct device *dev = &rc->uwb_dev.dev; |
191 | 191 | ||
192 | result = uwb_rc_reset(rc); | 192 | result = uwb_radio_setup(rc); |
193 | if (result < 0) { | 193 | if (result < 0) { |
194 | dev_err(dev, "cannot reset UWB radio: %d\n", result); | 194 | dev_err(dev, "cannot setup UWB radio: %d\n", result); |
195 | goto error; | 195 | goto error; |
196 | } | 196 | } |
197 | result = uwb_rc_mac_addr_setup(rc); | 197 | result = uwb_rc_mac_addr_setup(rc); |
@@ -311,12 +311,7 @@ void uwb_rc_rm(struct uwb_rc *rc) | |||
311 | 311 | ||
312 | uwb_dbg_del_rc(rc); | 312 | uwb_dbg_del_rc(rc); |
313 | uwb_rsv_remove_all(rc); | 313 | uwb_rsv_remove_all(rc); |
314 | uwb_rc_ie_rm(rc, UWB_IDENTIFICATION_IE); | 314 | uwb_radio_shutdown(rc); |
315 | if (rc->beaconing >= 0) | ||
316 | uwb_rc_beacon(rc, -1, 0); | ||
317 | if (rc->scan_type != UWB_SCAN_DISABLED) | ||
318 | uwb_rc_scan(rc, rc->scanning, UWB_SCAN_DISABLED, 0); | ||
319 | uwb_rc_reset(rc); | ||
320 | 315 | ||
321 | rc->stop(rc); | 316 | rc->stop(rc); |
322 | 317 | ||