/[baselayout]/trunk/net-scripts/net/iwconfig.sh
Gentoo

Diff of /trunk/net-scripts/net/iwconfig.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 2090 Revision 2091
711# incase the user already applied some changes 711# incase the user already applied some changes
712iwconfig_defaults() { 712iwconfig_defaults() {
713 local iface="$1" 713 local iface="$1"
714 714
715 # Set some defaults 715 # Set some defaults
716 iwconfig "${iface}" txpower auto 2>/dev/null
716 iwconfig "${iface}" rate auto 2>/dev/null 717 iwconfig "${iface}" rate auto 2>/dev/null
717 iwconfig "${iface}" rts auto 2>/dev/null 718 iwconfig "${iface}" rts auto 2>/dev/null
718 iwconfig "${iface}" frag auto 2>/dev/null 719 iwconfig "${iface}" frag auto 2>/dev/null
719 iwconfig "${iface}" txpower auto 2>/dev/null
720} 720}
721 721
722# void iwconfig_strip_associated(char *iface) 722# void iwconfig_strip_associated(char *iface)
723# 723#
724# We check to see which ifaces have associated AP's except for the iface 724# We check to see which ifaces have associated AP's except for the iface
930 return 0 930 return 0
931 fi 931 fi
932 932
933 eerror "Failed to configure wireless for ${iface}" 933 eerror "Failed to configure wireless for ${iface}"
934 iwconfig_defaults "${iface}" 934 iwconfig_defaults "${iface}"
935 # Save power
936 iwconfig "${iface}" txpower off 2>/dev/null
935 unset ESSID ESSIDVAR 937 unset ESSID ESSIDVAR
936 interface_down "${iface}" 938 interface_down "${iface}"
937 return 1 939 return 1
938} 940}
939 941
940iwconfig_post_stop() { 942iwconfig_post_stop() {
941 interface_exists "${iface}" || return 0 943 interface_exists "${iface}" || return 0
942 iwconfig_defaults "${iface}" 944 iwconfig_defaults "${iface}"
943
944 # Save power 945 # Save power
945 iwconfig "${iface}" txpower off 2>/dev/null 946 iwconfig "${iface}" txpower off 2>/dev/null
946} 947}
947 948
948# vim: set ts=4 : 949# vim: set ts=4 :

Legend:
Removed from v.2090  
changed lines
  Added in v.2091

  ViewVC Help
Powered by ViewVC 1.1.20