lkml.org 
[lkml]   [2013]   [Dec]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [PATCH v2 15/16] wl1251: Add sysfs file address for setting permanent mac address
    Date
    On Tuesday 10 December 2013 17:10:50 Pali Rohár wrote:
    > On Tuesday 10 December 2013 16:49:23 Kalle Valo wrote:
    > > Pali Rohár <pali.rohar@gmail.com> writes:
    > > > Driver wl1251 generating mac address randomly at startup
    > > > and there is no way to set permanent mac address via
    > > > SET_IEEE80211_PERM_ADDR. This patch export sysfs file
    > > > which can set permanent mac address by userspace helper
    > > > program. Patch is needed for devices which do not store
    > > > mac address in internal wl1251 eeprom.
    > > >
    > > > Signed-off-by: Pali Rohár <pali.rohar@gmail.com>
    > >
    > > We have ioctl() command for setting the mac address.
    >
    > Really? Is there ioctl for setting permanent mac address?
    > Can you show me it?

    Now I looked at it again and I did not found any ioctl for it.
    There is only ioctl cmd for getting address, not setting it.

    #define SIOCETHTOOL 0x8946

    /* Get permanent hardware address */
    #define ETHTOOL_GPERMADDR 0x00000020

    --
    Pali Rohár
    pali.rohar@gmail.com
    [unhandled content-type:application/pgp-signature]
    \
     
     \ /
      Last update: 2013-12-10 19:01    [W:5.710 / U:0.704 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site