1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-30 21:39:43 +02:00
openwrt-xburst/package/acx/patches/003-encrypt-broadcast-traffic.diff
juhosg 9884360674 package/acx: refresh patches
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20448 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-26 14:27:02 +00:00

15 lines
376 B
Diff

--- a/common.c
+++ b/common.c
@@ -4155,6 +4155,11 @@ acx_l_process_data_frame_master(acx_devi
/* To_DS = 0, From_DS = 1 */
hdr->fc = WF_FC_FROMDSi + WF_FTYPE_DATAi;
+ /* Do we need to encrypt this? */
+ if (adev->wep_enabled) {
+ SET_BIT(hdr->fc, WF_FC_ISWEPi);
+ }
+
txbuf = acx_l_get_txbuf(adev, tx);
if (txbuf) {
len = RXBUF_BYTES_RCVD(adev, rxbuf);