Namespace: wiphy

uCentral. wiphy

This is the wireless PHY base class. It is automatically instantiated and accessible using the global 'wiphy' variable.

Methods

staticuCentral.wiphy.channel_to_freq(wireless, channel){number}

Convert a wireless channel to a wireless frequency

Name Type Description
wireless string

band

channel number
Returns:
Type Description
number Returns the coverted wireless frequency for this specific channel.

staticuCentral.wiphy.lookup_by_band(band){Array.<object>}

Get a list of all wireless PHYs for a specific wireless band

Name Type Description
band string
Returns:
Type Description
Array.<object> Returns an array of all wireless PHYs for a specific wireless band.

staticuCentral.wiphy.path_to_section(path){string|false}

Convert the unique sysfs path describing a wireless PHY to the corresponding UCI section name

Name Type Description
path string
Returns:
Type Description
string | false Returns the UCI section name of a specific PHY

staticuCentral.wiphy.phys(){Array}

Return a list of PHY information structures

This function returns a list of all available PHYs including the relevant data describing their properties and capabilities such as HT Modes, channels, ...

Returns:
Type Description
Array Returns an array of all available PHYs.