View | Details | Raw Unified | Return to bug 716652
Collapse All | Expand All

(-)/etc/sysconfig/network/scripts/ifup-wireless.orig (-3 / +19 lines)
Lines 777-787 Link Here
777
                ;;
777
                ;;
778
        esac
778
        esac
779
779
780
        # Note, that this setting is not supported by all cards resp. drivers
781
        # and shall be tested before the user decides to set it.
780
        case $WIRELESS_POWER in
782
        case $WIRELESS_POWER in
781
            ""|none) ;;
783
            ""|none) ;;
782
            yes)     run_iw_tool config power period 2 ;;
784
            yes)    run_iw_tool config power period 2
783
            no)      run_iw_tool config power off ;;
785
                    if [ $RETVAL -eq 250 ]; then
784
            *)       run_iw_tool config power $WIRELESS_POWER ;;
786
                        # The power operation is invalid or unsupported.
787
                        iwconfig $INTERFACE power off 2> /dev/null
788
                        # If the power operation is unsupported, ignore the error.
789
                        [ $? -eq 250 ] && RETVAL=$R_SUCCESS
790
                    fi ;;
791
            no|off) run_iw_tool config power off
792
                    # If the power operation is unsupported, ignore the error.
793
                    [ $RETVAL -eq 250 ] && RETVAL=$R_SUCCESS ;;
794
            *)      run_iw_tool config power $WIRELESS_POWER
795
                    if [ $RETVAL -eq 250 ]; then
796
                        # The power operation is invalid or unsupported.
797
                        iwconfig $INTERFACE power off 2> /dev/null
798
                        # If the power operation is unsupported, ignore the error.
799
                        [ $? -eq 250 ] && RETVAL=$R_SUCCESS
800
                    fi ;;
785
        esac
801
        esac
786
802
787
        if need_wpa_supplicant ; then
803
        if need_wpa_supplicant ; then

Return to bug 716652