diff options
Diffstat (limited to 'net-scripts/net.modules.d/iwconfig')
-rw-r--r-- | net-scripts/net.modules.d/iwconfig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net-scripts/net.modules.d/iwconfig b/net-scripts/net.modules.d/iwconfig index 09c0c32..53dcaa9 100644 --- a/net-scripts/net.modules.d/iwconfig +++ b/net-scripts/net.modules.d/iwconfig @@ -130,7 +130,7 @@ iwconfig_report() { local mode=$( iwconfig_get_mode "${iface}" ) if [[ ${mode} == "master" ]]; then m="as" - else + elif [[ ${mode} != "ad-hoc" ]]; then mac=$( iwconfig_get_ap_mac_address "${iface}" ) [[ -n ${mac} ]] && mac=" at ${mac}" fi @@ -752,7 +752,7 @@ iwconfig_configure() { # Setup ad-hoc mode? x="mode_${ifvar}" - x=$( echo "${!mode:-managed}" | tr '[:upper:]' '[:lower:]' ) + x=$( echo "${!x:-managed}" | tr '[:upper:]' '[:lower:]' ) if [[ ${x} == "ad-hoc" || ${x} == "master" ]]; then iwconfig_setup_specific "${iface}" "${x}" return $? |