«
Předchozí
|
Další
»
Revize 6f7e4d6a
Přidáno uživatelem Michal Kliment před více než 3 roky(ů)
- ID 6f7e4d6aa44ab18ea756efc7bae2163ddde4ecb2
- Rodič e0da3ee3
application/models/iface.php | ||
---|---|---|
self::TYPE_ETHERNET => array(self::TYPE_BRIDGE),
|
||
self::TYPE_VIRTUAL_AP => array(self::TYPE_WIRELESS)
|
||
);
|
||
|
||
/**
|
||
* Boolean value if wireless antenna type can have azimuth
|
||
*
|
||
* @var array
|
||
*/
|
||
private static $wireless_antenna_has_azimuth = array
|
||
(
|
||
self::WIRELESS_ANTENNA_DIRECTIONAL => TRUE,
|
||
self::WIRELESS_ANTENNA_OMNIDIRECTIONAL => FALSE,
|
||
self::WIRELESS_ANTENNA_SECTIONAL => TRUE
|
||
);
|
||
|
||
/**
|
||
* Tests if type can have link
|
||
... | ... | |
|
||
return array();
|
||
}
|
||
|
||
/**
|
||
* Tests if wireless antenna can have azimuth
|
||
*
|
||
* @author Michal Kliment
|
||
* @param integer $wireless_antenna
|
||
* @return boolean
|
||
*/
|
||
public static function wireless_antenna_has_azimuth($wireless_antenna)
|
||
{
|
||
if (isset(self::$wireless_antenna_has_azimuth[$wireless_antenna]))
|
||
return self::$wireless_antenna_has_azimuth[$wireless_antenna];
|
||
else
|
||
return TRUE;
|
||
}
|
||
|
||
/**
|
||
* Returns type of current interface
|
Také k dispozici: Unified diff
Add gain and azimuth to wireless ifaces (fixes #1166)