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

(-)a/scripts/ifup-wireless (-7 / +8 lines)
Lines 783-802 case $ACTION in Link Here
783
            ""|none) ;;
783
            ""|none) ;;
784
            yes)    run_iw_tool config power period 2
784
            yes)    run_iw_tool config power period 2
785
                    if [ $RETVAL -eq 250 ]; then
785
                    if [ $RETVAL -eq 250 ]; then
786
                        # The power operation is invalid or unsupported.
786
                        # The power operations may be not supported by the
787
                        # driver and not all driver support all modes ...
787
                        iwconfig $INTERFACE power off 2> /dev/null
788
                        iwconfig $INTERFACE power off 2> /dev/null
788
                        # If the power operation is unsupported, ignore the error.
789
                        # Error were logged/displayed ... don't fail here.
789
                        [ $? -eq 250 ] && RETVAL=$R_SUCCESS
790
                        RETVAL=$R_SUCCESS
790
                    fi ;;
791
                    fi ;;
791
            no|off) run_iw_tool config power off
792
            no|off) run_iw_tool config power off
792
                    # If the power operation is unsupported, ignore the error.
793
                    # If the power operation is unsupported, ignore the error.
793
                    [ $RETVAL -eq 250 ] && RETVAL=$R_SUCCESS ;;
794
                    [ $RETVAL -eq 250 ] && RETVAL=$R_SUCCESS ;;
794
            *)      run_iw_tool config power $WIRELESS_POWER
795
            *)      run_iw_tool config power $WIRELESS_POWER
795
                    if [ $RETVAL -eq 250 ]; then
796
                    if [ $RETVAL -eq 250 ]; then
796
                        # The power operation is invalid or unsupported.
797
                        # The power operations may be not supported by the
798
                        # driver and not all driver support all modes ...
797
                        iwconfig $INTERFACE power off 2> /dev/null
799
                        iwconfig $INTERFACE power off 2> /dev/null
798
                        # If the power operation is unsupported, ignore the error.
800
                        # Error were logged/displayed ... don't fail here.
799
                        [ $? -eq 250 ] && RETVAL=$R_SUCCESS
801
                        RETVAL=$R_SUCCESS
800
                    fi ;;
802
                    fi ;;
801
        esac
803
        esac
802
804
803
- 

Return to bug 716652