Skip to content

Commit 0770d11

Browse files
authored
Merge branch 'cilynx:5.8.7.1_35809.20191129_COEX20191120-7777' into cleanup
2 parents 5fe4fff + f77c4e5 commit 0770d11

File tree

6 files changed

+16
-15
lines changed

6 files changed

+16
-15
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ EXTRA_CFLAGS += -Wno-unused-function
1111
EXTRA_CFLAGS += -Wno-unused-parameter
1212
EXTRA_CFLAGS += -Wno-unused-variable
1313
EXTRA_CFLAGS += -Wno-array-bounds
14+
EXTRA_CFLAGS += -Wno-address
1415

1516
GCC_VER_49 := $(shell echo `$(CC) -dumpversion | cut -f1-2 -d.` \>= 4.9 | bc )
1617
ifeq ($(GCC_VER_49),1)
@@ -2457,4 +2458,3 @@ clean:
24572458
rm -fr *.mod.c *.mod *.o .*.cmd *.ko *~
24582459
rm -fr .tmp_versions *.ur-safe
24592460
endif
2460-

core/rtw_ap.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -4399,7 +4399,7 @@ static u8 rtw_ap_update_chbw_by_ifbmp(struct dvobj_priv *dvobj, u8 ifbmp
43994399
int i;
44004400

44014401
for (i = 0; i < dvobj->iface_nums; i++) {
4402-
if (!(ifbmp & BIT(i)) || !dvobj->padapters)
4402+
if (!(ifbmp & BIT(i)) || !dvobj->padapters[i])
44034403
continue;
44044404

44054405
iface = dvobj->padapters[i];
@@ -4419,7 +4419,7 @@ static u8 rtw_ap_update_chbw_by_ifbmp(struct dvobj_priv *dvobj, u8 ifbmp
44194419
}
44204420

44214421
for (i = 0; i < dvobj->iface_nums; i++) {
4422-
if (!(ifbmp & BIT(i)) || !dvobj->padapters)
4422+
if (!(ifbmp & BIT(i)) || !dvobj->padapters[i])
44234423
continue;
44244424

44254425
iface = dvobj->padapters[i];
@@ -4589,7 +4589,7 @@ u8 rtw_ap_chbw_decision(_adapter *adapter, u8 ifbmp, u8 excl_ifbmp
45894589

45904590
#ifdef CONFIG_RTW_MESH
45914591
for (i = 0; i < dvobj->iface_nums; i++)
4592-
if ((ifbmp & BIT(i)) && dvobj->padapters)
4592+
if ((ifbmp & BIT(i)) && dvobj->padapters[i])
45934593
if (!MLME_IS_MESH(dvobj->padapters[i]))
45944594
break;
45954595
ifbmp_all_mesh = i >= dvobj->iface_nums ? 1 : 0;

core/rtw_mlme_ext.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -8997,7 +8997,7 @@ static u32 rtw_append_assoc_req_owe_ie(_adapter *adapter, u8 *pbuf)
89978997
if (sec == NULL)
89988998
goto exit;
89998999

9000-
if (sec->owe_ie && sec->owe_ie_len > 0) {
9000+
if (sec->owe_ie_len > 0) {
90019001
len = sec->owe_ie_len;
90029002
_rtw_memcpy(pbuf, sec->owe_ie, len);
90039003
}
@@ -16664,4 +16664,3 @@ int rtw_sae_preprocess(_adapter *adapter, const u8 *buf, u32 len, u8 tx)
1666416664
return _SUCCESS;
1666516665
#endif /* CONFIG_IOCTL_CFG80211 */
1666616666
}
16667-

core/rtw_sta_mgt.c

+7-8
Original file line numberDiff line numberDiff line change
@@ -380,13 +380,13 @@ static void _rtw_free_sta_recv_priv_lock(struct sta_recv_priv *psta_recvpriv)
380380
void rtw_mfree_stainfo(struct sta_info *psta);
381381
void rtw_mfree_stainfo(struct sta_info *psta)
382382
{
383-
384-
if (&psta->lock != NULL)
385-
_rtw_spinlock_free(&psta->lock);
386-
387-
_rtw_free_sta_xmit_priv_lock(&psta->sta_xmitpriv);
388-
_rtw_free_sta_recv_priv_lock(&psta->sta_recvpriv);
389-
383+
// Here used to be some calls to helper functions that would call
384+
// _rtw_spinlock_free several times. However, _rtw_spinlock_free does not
385+
// do anything on Linux. Since this project is concerned only with Linux,
386+
// it is safe to remove the calls entirely.
387+
// This function is kept. Removing it would force us to remove it in the
388+
// callers, which has the danger of becoming incompatible with possible
389+
// future patches.
390390
}
391391

392392

@@ -1342,4 +1342,3 @@ void dump_pre_link_sta_ctl(void *sel, struct sta_priv *stapriv)
13421342
}
13431343
}
13441344
#endif /* CONFIG_RTW_PRE_LINK_STA */
1345-

dkms.conf

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
PACKAGE_NAME="rtl88x2bu"
22
PACKAGE_VERSION="5.8.7.1"
3-
MAKE[0]="'make' KVER=$kernelver src=$source_tree/rtl88x2bu-$PACKAGE_VERSION"
3+
PROCS_NUM="$(nproc)"
4+
MAKE[0]="'make' -j $PROCS_NUM KVER=$kernelver src=$source_tree/rtl88x2bu-$PACKAGE_VERSION"
45
CLEAN="make clean"
56
BUILT_MODULE_NAME[0]="88x2bu"
67
DEST_MODULE_LOCATION[0]="/kernel/drivers/net"

os_dep/linux/usb_intf.c

+2
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,8 @@ static struct usb_device_id rtw_usb_id_tbl[] = {
249249
{USB_DEVICE_AND_INTERFACE_INFO(0x2357, 0x0138, 0xff, 0xff, 0xff), .driver_info = RTL8822B}, /* TP-Link Archer T3U Plus V1 */
250250
{USB_DEVICE_AND_INTERFACE_INFO(0x7392, 0xB822, 0xff, 0xff, 0xff), .driver_info = RTL8822B}, /* Edimax EW-7822ULC */
251251
{USB_DEVICE_AND_INTERFACE_INFO(0x7392, 0xC822, 0xff, 0xff, 0xff), .driver_info = RTL8822B}, /* Edimax EW-7822UTC */
252+
{USB_DEVICE_AND_INTERFACE_INFO(0x20F4, 0x808A, 0xff, 0xff, 0xff), .driver_info = RTL8822B}, /* TRENDnet TEW-808UBM */
253+
{USB_DEVICE_AND_INTERFACE_INFO(0x13b1, 0x0045, 0xff, 0xff, 0xff), .driver_info = RTL8822B}, /* Linksys WUSB3600 v2 */
252254
#endif /* CONFIG_RTL8822B */
253255

254256
#ifdef CONFIG_RTL8723D

0 commit comments

Comments
 (0)