adopt_phy

Function adopt_phy 

Source
pub async fn adopt_phy(
    device: &mut UlcpDevice<SessionLink>,
) -> Result<UlcpDeviceConfig>
Expand description

The device’s live PHY, as a radio configuration.

The host MAC paces itself on modeled airtime, and the attach this tool uses deliberately leaves the radio’s configuration alone, so the defaults it carries may describe some other radio entirely. Read the real ones before borrowing the link.

A radio whose PHY is switched off refuses every transmission, and it does so far downstream — as an INVALID_STATE on the first frame the MAC tries to send, long after the radio has been borrowed. Reading the flag here turns that into an answer the caller can act on, while it still has its attachment.