Your message dated Thu, 24 Mar 2016 22:50:10 +0000
with message-id <[email protected]>
and subject line Bug#154367: fixed in wireless-tools 30~pre9-9
has caused the Debian Bug report #154367,
regarding wireless-tools: if-pre-up script should disable itself if card is of 
wlan-ng type
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
154367: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=154367
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: wireless-tools
Version: 24-1
Severity: normal

I am worming on packaging wlan-ng for debian, and have decided to make
it support bringing up the wireless interfaces with ifup. Moreover, I
have made it support, whever possible, the same fields and values in
/etc/network/interfaces as are used by the wireless-tools package. I
think this is good because it will lessen the learning curve, and also
bebause it allows the possibility of using the same stanza in
network/interfaces for a pcmcia card that is driven by wlan-ng, and
another wireless card driven by the orinoco driver or something, even
though the underlying configuration is much different.

But, there's a problem. If I put stuff like wireless_* in the interfaces
file, the wireless-tools if-pre-up.d script wakes up and tries to
iwconfig the interface, which just doesn't work for wlan-ng interfaces.

run-parts /etc/network/if-pre-up.d
Error for wireless request "Set Frequency" (8B04) :
    SET failed on device wlan0 ; No such device.
run-parts: /etc/network/if-pre-up.d/wireless-tools exited with return code 251
IBSS not started, resultcode=invalid_parameters
run-parts: /etc/network/if-pre-up.d/wlan exited with return code 1

This is actually only cosmetic, but it is rather ugly..

Hmm, I think this same problem would result if I had a interfaces stanza
for my pcmcia card, eth1, and the stanza had wireless_* in it, and I
stuck in a regular ethernet card. So this is a more general problem.. I
think that your script needs to somehow determine if the interface
supports wireless, and moreover, see if it is a wvlan-ng interface or
not. For the former, grepping for "no wireless extentions" in ifconfig
$IFACE would do, but wlan-ng does provide wireless information, so that
is not good enough. I next thought of iwspy, but while wvlan-ng does not
provide the interface used by iwspy, neither does the polhdu driver,
which can be configured with iwconfig.

I finally hit upon iwpriv. For non-wireless devices, of course, it
outputs "no private ioctls", and for wlan-ng, it outputs:

wlan0     Available private ioctl :
          DUMMY;-) (8B0D) : set   0      & get   0  

So, I suggest this patch:

--- wireless-tools~     Fri Jul 26 02:43:31 2002
+++ wireless-tools      Fri Jul 26 02:43:42 2002
@@ -82,7 +82,8 @@
   ARGS="$ARGS commit"
 fi
 
-if [ -n "$ARGS" ]
+if [ -n "$ARGS" ] &&
+   ! iwpriv $IFACE 2>&1 | egrep -q '(no private ioctls|DUMMY)'
 then
   eval $IWCONFIG $IFACE $ARGS
 fi

I guess an easier approach would be to bail if IFACE=wlan*, but I
remember old versions of the orinoco driver created a wlan0
interface..

-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux dragon 2.4.18 #1 Thu Jul 25 18:10:57 EDT 2002 i586
Locale: LANG=C, LC_CTYPE=C

Versions of packages wireless-tools depends on:
ii  libc6                         2.2.5-6    GNU C Library: Shared libraries an



--- End Message ---
--- Begin Message ---
Source: wireless-tools
Source-Version: 30~pre9-9

We believe that the bug you reported is fixed in the latest version of
wireless-tools, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Guus Sliepen <[email protected]> (supplier of updated wireless-tools package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Thu, 24 Mar 2016 22:31:00 +0100
Source: wireless-tools
Binary: wireless-tools ifrename libiw30 libiw-dev wireless-tools-udeb 
libiw30-udeb
Architecture: source amd64
Version: 30~pre9-9
Distribution: unstable
Urgency: medium
Maintainer: Guus Sliepen <[email protected]>
Changed-By: Guus Sliepen <[email protected]>
Description:
 ifrename   - Rename network interfaces based on various static criteria
 libiw-dev  - Wireless tools - development files
 libiw30    - Wireless tools - library
 libiw30-udeb - Tools for manipulating Linux Wireless Extensions (udeb)
 wireless-tools - Tools for manipulating Linux Wireless Extensions
 wireless-tools-udeb - Tools for manipulating Linux Wireless Extensions (udeb)
Closes: 154367 445356 683635
Changes:
 wireless-tools (30~pre9-9) unstable; urgency=medium
 .
   [ Elliot Mitchell ]
   * Support multiple 802.11 tool scripts for ifupdown. Closes: #154367
     - By default, the if-pre-up and if-post-down scripts will now check
       if the interface actually supports wireless-tools, otherwise they
       will exit without an error. Closes: #445356
 .
   [ A. Costa ]
   * Fixed a typo in iwlist.8. Closes: #683635
 .
   [ Guus Sliepen ]
   * Convert debian/rules to dh.
   * Bump Standards-Version.
   * Bump debian/compat.
   * Source /lib/lsb/init-functions in ifrename's init script.
   * Add a systemd service file for ifrename.
Checksums-Sha1:
 02d7447fdf525898244194739b98d88cd4c9664d 2141 wireless-tools_30~pre9-9.dsc
 0e2725feda1898f04e589496de19a6012c867f05 12008 
wireless-tools_30~pre9-9.debian.tar.xz
 22770ecb4d3531f66642a2da2970f06aa6988cc8 26342 
ifrename-dbgsym_30~pre9-9_amd64.deb
 bf05662e28cf194ef0e2f69a907d93396f2990a4 53576 ifrename_30~pre9-9_amd64.deb
 1b5c122c933627e11ea90305587e393cef428fd6 38792 libiw-dev_30~pre9-9_amd64.deb
 4e0ef93ae494b8e386d9cc11f870e54f48a29b3f 26954 
libiw30-dbgsym_30~pre9-9_amd64.deb
 ce3424f2f46739d2057b03e640b94420623d856d 12584 
libiw30-udeb_30~pre9-9_amd64.udeb
 576cae547db55d5b277a5c2355efb8b6c9973114 21162 libiw30_30~pre9-9_amd64.deb
 919b8f4cfd7ae04614c5ce5029f3e38ae3bce551 82604 
wireless-tools-dbgsym_30~pre9-9_amd64.deb
 64875a0134bdcd96592ab90849f9af02be6d7101 11382 
wireless-tools-udeb_30~pre9-9_amd64.udeb
 ce75aca4bf3a3828fc8c33ae05172adcd3a7a5c5 111380 
wireless-tools_30~pre9-9_amd64.deb
Checksums-Sha256:
 dde8c1cddbcbe0b30632046af65f8de88cc5b1d2430c648924364cdc8d7e322f 2141 
wireless-tools_30~pre9-9.dsc
 ede678160130c42b6c20819aeda3a1873268c52ea67a34eb2d95f4139a6bf447 12008 
wireless-tools_30~pre9-9.debian.tar.xz
 473a1bd479430c95c0ddc85c779fae712e972b811cb5acdbe21704b557ce6cfe 26342 
ifrename-dbgsym_30~pre9-9_amd64.deb
 1666cf0454d5802f1a98dd776daef52b8f643187d305d3c980ef5617d85f9506 53576 
ifrename_30~pre9-9_amd64.deb
 b58b89985342cd7e03b956cc18d281142286690d93875a877af7954da39e0fac 38792 
libiw-dev_30~pre9-9_amd64.deb
 157fcc9c30ecd99f99a5a0b1e4fd7eacdb1d9f4454c2800c298ce4f3afd7165e 26954 
libiw30-dbgsym_30~pre9-9_amd64.deb
 d597cb6809b531f8bee70c86ab67dde1c032118c3f1e01b1d820c898116543e6 12584 
libiw30-udeb_30~pre9-9_amd64.udeb
 2bc0705febad81fd709d365fa1621a9efd01c69677517047c38fb501bfaf0194 21162 
libiw30_30~pre9-9_amd64.deb
 ba52504e641c3cd4c02fdad6cbd85bbebd4899ccad6b792b04e3b3756c2b2c26 82604 
wireless-tools-dbgsym_30~pre9-9_amd64.deb
 74638f0fa41593de3507745263f567629a4a35b00d96921724e5bb1d0ae6affa 11382 
wireless-tools-udeb_30~pre9-9_amd64.udeb
 8e2006354d752efa0dd130bf8bef26e7cdf7835917da9f5b764388326f3e4bb3 111380 
wireless-tools_30~pre9-9_amd64.deb
Files:
 eb884fdd6625fca99239f5182895a4a5 2141 net extra wireless-tools_30~pre9-9.dsc
 eb4171773097259baf4810d01024c91e 12008 net extra 
wireless-tools_30~pre9-9.debian.tar.xz
 0e5dc4a12d88249ce9a7721c4d8ca55b 26342 debug extra 
ifrename-dbgsym_30~pre9-9_amd64.deb
 0504bc97793fd261b6d84ed5d3563e2e 53576 net extra ifrename_30~pre9-9_amd64.deb
 e5c9bcd56a1ca321ab28ea1d3c23870e 38792 libdevel extra 
libiw-dev_30~pre9-9_amd64.deb
 f598b128452a65a371a418f325c6d702 26954 debug extra 
libiw30-dbgsym_30~pre9-9_amd64.deb
 a6a303ffa8b7b4c87dba112b7cc0a593 12584 debian-installer extra 
libiw30-udeb_30~pre9-9_amd64.udeb
 9031e829537dba49711b7937071f78e4 21162 libs extra libiw30_30~pre9-9_amd64.deb
 bd9ed767540b49d46513b1c5acad1e99 82604 debug extra 
wireless-tools-dbgsym_30~pre9-9_amd64.deb
 4253b2d0f732d0e4d08c8694f6857465 11382 debian-installer extra 
wireless-tools-udeb_30~pre9-9_amd64.udeb
 62db571f545a0cc8dab67c61fa9e0024 111380 net extra 
wireless-tools_30~pre9-9_amd64.deb
Package-Type: udeb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJW9FzhAAoJED9JDeuHHvn68mcP/14S9Z2oZp3tOoun5LRycYS4
OLwnfoYw/pKgSUBY96vyDHZ5naOJGyjKhfZ802OgKP4gGzCb4uhKMyKFYQhaPduC
aY6WLDo720eeIkaQEDvQ4DJOe+XCrBcbvjOXmLaG5tHC5DIRYX4EMuDvc9s0YDr2
sKP/wv+3i87pd+q9AHlLhhG545qgephZhQfdvg0FLDoBxLptOtyGBaVTaSFwveCb
yvW+QdCh6vWNt6f6G7OUsazom4w+EfztywWogmyFG9jMQaMlldpHk0WvxlpRb/KX
sKtW64QZDcwWQtjtK07iLZmJOy/Sz0Erc+s5gQvKcHt7oIIrNzRQrfytkY7jXQ3y
VhCsyFOp3Jqqxr0pI/YFupgBClrLRYI8UiAu+iBuQalPZa1fPIUtjz60H9DDLrt3
zyUFVJBZXXKoBiX/PLLQT22vEsUHdXSICpBq2fFqAoh+g32d0oQQhsuO4+KBqlop
iFk4Vcky4tM4do7TAaFuM98tke4sg8vl1p7DYzqcbwrSV2IAHFh1y+cSvWPjVplQ
NmohPRyy8BqQMFaJs4oXlCyUIfzk1C6NWX++7FF8DCUL00++M2DHKjvoIxoUFvsm
Tqlh5LRY/csM4flyWsUO4wonT8gnU8z8EYiKhHJrJwDTG+AFp8irto2RQ5vNLnY5
nd+GsqYeo1o8fVyHUTPS
=MGGW
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to