#244: [patch] prevent numbering of vap interfaces
-----------------------------------------------+----------------------------
      Reporter:  Matt Brown <[EMAIL PROTECTED]>  |       Owner:  mrenzmann
          Type:  defect                        |      Status:  assigned 
      Priority:  major                         |   Milestone:           
     Component:  madwifi: 802.11 stack         |     Version:  trunk    
    Resolution:                                |    Keywords:           
Patch_attached:  1                             |  
-----------------------------------------------+----------------------------
Changes (by mrenzmann):

  * status:  new => assigned
  * owner:  => mrenzmann

Comment:

 If I'm not totally wrong the patch works different than what the
 documentation (especially the users guide, even with the changes from the
 patch) says. It is expected that if the user specifies {{{ath5}}} as
 interface name this will be the name for the interface (if it isn't used
 yet).

 But the patch behaves different. In the above example ''strncmp'' just
 compares the first three characters of the given interface name, finds
 that it matches {{{ath}}}, then appends the {{{%d}}} to the interface name
 handed over to the kernel, which results in an interface like {{{ath50}}}.

 To fix this, ''strncmp'' should be replaced by ''strcmp''. Then:
  * {{{ath}}} results in {{{ath}}}''X'' with ''X'' being an integer
 selected by the kernel
  * {{{ath<appendix>}}} results in {{{ath<appendix>}}} if the name isn't
 already used, otherwise wlanconfig will complain
  * {{{foo}}} results in {{{foo}}} if the name isn't already used,
 otherwise wlanconfig will complain

 Comments?

-- 
Ticket URL: <http://madwifi.org/ticket/244>
MadWifi <http://madwifi.org/>
Multiband Atheros Driver for Wireless Fidelity

Reply via email to