Ignore:
Timestamp:
2011-07-24T16:10:39+02:00 (5 years ago)
Author:
jow
Message:

[package] broadcom-wl: make it work on the RT-N16 and other device using the BCMA bus

  • refresh and reorder patches
  • introduce a unified BCMA/SSB glue driver to accomodate for both bus types on brcm47xx
  • extend wlunbind init script to detach device from bcma-pci-bridge as well
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/broadcom-wl/files/etc/init.d/wlunbind

    r22007 r27751  
    11#!/bin/sh /etc/rc.common 
    2 # Copyright (C) 2010 OpenWrt.org 
     2# Copyright (C) 2010-2011 OpenWrt.org 
    33 
    44START=09 
    55 
    6 boot() { 
    7         local sysfs=/sys/bus/pci/drivers/b43-pci-bridge 
     6unbind_driver() { 
     7        local driver="$1" 
     8        local sysfs="/sys/bus/pci/drivers/$driver" 
    89        if [ -d "$sysfs" ]; then 
    910                local lnk 
     
    1213                        case "${lnk##*/}" in 
    1314                                *:*:*.*) 
    14                                         logger "Unbinding WL PCI device ${lnk##*/} from B43 SSB bridge" 
     15                                        logger "Unbinding WL PCI device ${lnk##*/} from $driver" 
    1516                                        echo -n "${lnk##*/}" > "$sysfs/unbind" 
    1617                                ;; 
     
    2021} 
    2122 
     23boot() { 
     24        unbind_driver b43-pci-bridge 
     25        unbind_driver bcma-pci-bridge 
     26} 
     27 
    2228start() { :; } 
    2329stop() { :; } 
Note: See TracChangeset for help on using the changeset viewer.