Advertisement
jow-

Untitled

Oct 25th, 2014
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.23 KB | None | 0 0
  1. diff --git a/package/kernel/broadcom-wl/files/lib/wifi/broadcom.sh b/package/kernel/broadcom-wl/files/lib/wifi/broadcom.sh
  2. index 69e3132..7fec6aa 100644
  3. --- a/package/kernel/broadcom-wl/files/lib/wifi/broadcom.sh
  4. +++ b/package/kernel/broadcom-wl/files/lib/wifi/broadcom.sh
  5. @@ -201,6 +201,15 @@ enable_broadcom() {
  6.         # Use 'chanspec' instead of 'channel' for 'N' modes (See bcmwifi.h)
  7.         [ ${nmode:-0} -ne 0 -a -n "$band" -a -n "$channel" ] && {
  8.                 case "$htmode" in
  9. +                       HT40)
  10. +                               if [ -n "$gmode" ]; then
  11. +                                       [ $channel -lt 7 ] && htmode="HT40+" || htmode="HT40-"
  12. +                               else
  13. +                                       [ $(( ($channel / 4) % 2 )) -eq 1 ] && htmode="HT40+" || htmode="HT40-"
  14. +                               fi
  15. +                       ;;
  16. +               esac
  17. +               case "$htmode" in
  18.                         HT40-)  chanspec=$(printf 0x%x%x%02x $band 0xe $(($channel - 2))); channel=;;
  19.                         HT40+)  chanspec=$(printf 0x%x%x%02x $band 0xd $(($channel + 2))); channel=;;
  20.                         HT20)   chanspec=$(printf 0x%x%x%02x $band 0xb $channel); channel=;;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement